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

AuthenticationRequest

siemensikkema edited this page Nov 8, 2021 · 2 revisions

AuthenticationRequest

public protocol AuthenticationRequest 

Default Implementations

authenticationResponse(for:on:currentDate:)

static func authenticationResponse(
        for user: User,
        on request: Request,
        currentDate: Date = Date()
    ) throws -> AuthenticationResponse<User> 

Requirements

User

typealias User = AccessKeychainConfig.JWTPayload.User

AccessKeychainConfig

associatedtype AccessKeychainConfig: KeychainConfig

RefreshKeychainConfig

associatedtype RefreshKeychainConfig: KeychainConfig
        where RefreshKeychainConfig.JWTPayload.User == User