Skip to main content

Class: OIDCStrategyOptions

Defined in: src/auth/OIDCStrategy.ts:102

Describes the configuration options that can be used to initialize OIDCStrategy.

Constructors

Constructor

new OIDCStrategyOptions(name, provider): OIDCStrategyOptions

Defined in: src/auth/OIDCStrategy.ts:121

Parameters

name

string

provider

OIDCProvider

Returns

OIDCStrategyOptions

Properties

name

name: string = "oauth"

Defined in: src/auth/OIDCStrategy.ts:104

The unique name of the auth strategy instance.


provider

provider: OIDCProvider

Defined in: src/auth/OIDCStrategy.ts:109

The configuration of the OIDC/OpenID provider.

Methods

getUser()

getUser(token, profile): Promise<JWTUser | undefined>

Defined in: src/auth/OIDCStrategy.ts:117

Retrieves the user data for the given unique identifier after authentication has completed successfully. NOTE: You must override this function when using this strategy.

Parameters

token

string

The user's authenticated access token to the third-party provider.

profile

OIDCProfile

The user's profile data associated with the third-party provider.

Returns

Promise<JWTUser | undefined>