Type alias TokenGetter<RQ>

TokenGetter<RQ>: ((req) => Promise<string | null>)

Type of a function that can be used to retrieve an access token.

Type Parameters

  • RQ

Type declaration

    • (req): Promise<string | null>
    • Parameters

      • req: RQ

        — A NodeJS request object.

      Returns Promise<string | null>

Returns

An access token or null.