LoginRequest - ml-archive/keychain GitHub Wiki

LoginRequest

public protocol LoginRequest: AuthenticationRequest, ValidatableRequest 

Inheritance

AuthenticationRequest, ValidatableRequest

Default Implementations

logIn(on:errorOnWrongPassword:currentDate:)

static func logIn(
        on request: Request,
        errorOnWrongPassword: @escaping @autoclosure () -> Error,
        currentDate: Date = Date()
    ) -> EventLoopFuture<AuthenticationResponse<Model>> 

Requirements

Model

typealias Model = User

hashedPasswordKey

static var hashedPasswordKey: KeyPath<Model, String> 

password

var password: String 

logIn(on:​)

func logIn(on request: Request) -> EventLoopFuture<Model>
⚠️ **GitHub.com Fallback** ⚠️