Skip to main content

Interface: IssuedTokens

Defined in: auth-core/src/oauthServerTypes.ts:287

Tokens returned by the app's OAuthServerOptions.issueTokens hook.

Properties​

accessToken​

accessToken: string

Defined in: auth-core/src/oauthServerTypes.ts:289

The access token string (JWT, opaque, …).


expiresIn?​

optional expiresIn?: number

Defined in: auth-core/src/oauthServerTypes.ts:293

Access token lifetime in seconds, surfaced as expires_in.


refreshToken?​

optional refreshToken?: string

Defined in: auth-core/src/oauthServerTypes.ts:291

Optional refresh token enabling the refresh_token grant.


scope?​

optional scope?: string

Defined in: auth-core/src/oauthServerTypes.ts:295

Granted scopes as a space-separated string. Defaults to the bound scopes.