Skip to main content

Class: default

Extends

Constructors

new default()

new default(params): default

Parameters

params: OAuth2ClientParams

Returns

default

Overrides

APIClient.constructor

new default()

new default(configuration): default

Parameters

configuration: Configuration

Returns

default

Overrides

APIClient.constructor

Properties

idTokenValidator

readonly static idTokenValidator: IDTokenValidator = DefaultIDTokenValidator


accessTokenValidator

readonly static accessTokenValidator: TokenHashValidator


emitter

readonly emitter: OAuth2ClientEventEmitter


configuration

readonly configuration: Configuration

Overrides

APIClient.configuration

Accessors

baseURL

get baseURL(): URL

Returns

URL

Inherited from

APIClient.baseURL

Methods

internalFetch()

protected internalFetch(input, init?): Promise<Response>

Parameters

input: string | URL | Request

init?: RequestInit

Returns

Promise<Response>

Inherited from

APIClient.internalFetch


openIdConfiguration()

openIdConfiguration(): Promise<OpenIdConfiguration>

Returns

Promise<OpenIdConfiguration>


jwks()

jwks(): Promise<JWKS>

Returns

Promise<JWKS>


exchange()

exchange(request): Promise<OAuth2ErrorResponse | Token>

Parameters

request: TokenRequest

Returns

Promise<OAuth2ErrorResponse | Token>


refresh()

refresh(token): Promise<OAuth2ErrorResponse | Token>

Parameters

token: Token

Returns

Promise<OAuth2ErrorResponse | Token>


revoke()

revoke(token, type): Promise<void | OAuth2ErrorResponse>

Parameters

token: Token

type: RevokeType

Returns

Promise<void | OAuth2ErrorResponse>