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

KeychainConfig

siemensikkema edited this page Nov 8, 2021 · 2 revisions

KeychainConfig

public protocol KeychainConfig 

Default Implementations

authenticator

public static var authenticator: some JWTAuthenticator 

makeToken(for:on:currentDate:)

public static func makeToken(
        for user: JWTPayload.User,
        on request: Request,
        currentDate: Date = Date()
    ) throws -> String 

makeToken(for:on:currentDate:)

public func makeToken(
        for user: JWTPayload.User,
        on request: Request,
        currentDate: Date = Date()
    ) throws -> String 

makeToken(on:currentDate:)

public static func makeToken(
        on request: Request,
        currentDate: Date = Date()
    ) throws -> String 

makeToken(on:currentDate:)

public func makeToken(
        on request: Request,
        currentDate: Date = Date()
    ) throws -> String 

Requirements

JWTPayload

associatedtype JWTPayload: KeychainPayload

jwkIdentifier

static var jwkIdentifier: JWKIdentifier 

expirationTimeInterval

var expirationTimeInterval: TimeInterval