Skip to main content

Interface: IssueTokensArgs

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

Arguments passed to OAuthServerOptions.issueTokens.

Properties​

client​

client: OAuthClient

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

The client the tokens are being issued to.


resource?​

optional resource?: string

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

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:303

The scopes granted to the token.


subject​

subject: string

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

The authenticated end-user subject identifier.