Skip to main content

Class: BearerCredentials

@divine/uri.BearerCredentials

A helper implementation of Credentials for Bearer tokens.

Implements

Constructors

constructor

new BearerCredentials(token)

Constructs a new BearerCredentials/Credentials object.

Parameters

NameTypeDescription
tokenstringThe Bearer token, to be stored in identity.

Defined in

uri/src/auth-schemes/bearer.ts:13

Properties

identity

identity: string

The identity of the entity to be authorizied, like a user name of identity token.

Implementation of

Credentials.identity

Defined in

uri/src/auth-schemes/bearer.ts:6