A non-refreshable (static) authentication provider that always returns the initially provided credentials.

Implements

Constructors

Accessors

Methods

  • Adds a user and their related token data to this auth provider.

    Parameters

    • user: UserIdResolvable

      The ID of the user.

    • accessToken: string

      The access token.

    • Optionalscopes: string[]

      An optional list of scopes associated with the access token. These scopes will be compared against the scopes specified in the constructor. the scopes specified in the constructor (if any).

    Returns void

    InvalidTokenError if the access token is empty or undefined.

    MissingScopeError if the token scopes miss required scopes.