Class FormStrategy<User>

Type Parameters

  • User

Hierarchy

Constructors

Properties

Methods

Constructors

  • Type Parameters

    • User

    Parameters

    Returns FormStrategy<User>

Properties

name: string = "form"

The name of the strategy. This will be used by the Authenticator to identify and retrieve the strategy.

verify: VerifyFunction<User, VerifyOptions>

Methods

  • The authentication flow of the strategy.

    This method receives the Request from the authenticator we want to authenticate.

    At the end of the flow, it will return a the User data to be used by the application.

    Parameters

    • request: Request

    Returns Promise<User>