Skip to main content

Interface: IssueTokensArgs

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

Arguments passed to OAuthServerOptions.issueTokens.

Properties​

client​

client: OAuthClient

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

The client the tokens are being issued to.


resource?​

optional resource?: string

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

The resource (RFC 8707) the access token is for — the server's resource option, set only when that option is. Put it in the token's aud claim so resource servers that check their audience (such as @ttoss/http-server-mcp's resourceIndicator) accept it.


scopes​

scopes: string[]

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

The scopes granted to the token.


subject​

subject: string

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

The authenticated end-user subject identifier.