Class TokenHandler

Hierarchy

  • TokenHandler

Constructors

  • Parameters

    • req: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>
    • res: Response<any, Record<string, any>>

    Returns TokenHandler

Properties

baseUrl: string
request: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>
response: Response<any, Record<string, any>>

Methods

  • Validates that the request is form-urlencoded" POST and then uses the grant_type parameter to pick the right flow

    Returns Promise<void>

  • Handles the common authorization requests. Parses and validates token from request.body.code and eventually calls this.finish() with it.

    Returns Promise<void>

  • Handles the refresh_token authorization requests. Parses and validates token from request.body.refresh_token and eventually calls this.finish() with it.

    Returns void

  • This is the typical public static entry point designed to be easy to use as route handler.

    Parameters

    • req: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>
    • res: Response<any, Record<string, any>>

    Returns Promise<void>

Generated using TypeDoc