Skip to content
This repository has been archived by the owner on Apr 20, 2024. It is now read-only.

AuthenticationResponse

siemensikkema edited this page Nov 8, 2021 · 2 revisions

AuthenticationResponse

public struct AuthenticationResponse<User> 

Initializers

init(user:accessToken:refreshToken:)

public init(
        user: User,
        accessToken: String,
        refreshToken: String
    ) 

Properties

user

public let user: User

accessToken

public let accessToken: String

refreshToken

public let refreshToken: String

Methods

map(_:)

public func map<T>(_ transformUser: (User) throws -> T) rethrows -> AuthenticationResponse<T> 

flatMap(_:)

public func flatMap<T>(
        _ transformUser: (User) -> EventLoopFuture<T>
    ) -> EventLoopFuture<AuthenticationResponse<T>>