Skip to main content

Interface: IssuedTokens

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

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

Properties

accessToken

accessToken: string

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

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


expiresIn?

optional expiresIn?: number

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

Access token lifetime in seconds, surfaced as expires_in.


refreshToken?

optional refreshToken?: string

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

Optional refresh token enabling the refresh_token grant.


scope?

optional scope?: string

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

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