Skip to main content

Interface: TokenRequest

Defined in: src/auth/oauth/oauth-service.ts:89

Token request parameters.

Properties

clientId

readonly clientId: string

Defined in: src/auth/oauth/oauth-service.ts:98

Client identifier.


clientSecret?

readonly optional clientSecret: string

Defined in: src/auth/oauth/oauth-service.ts:103

Client secret (confidential clients).


code?

readonly optional code: string

Defined in: src/auth/oauth/oauth-service.ts:108

Authorization code (authorization_code grant).


codeVerifier?

readonly optional codeVerifier: string

Defined in: src/auth/oauth/oauth-service.ts:118

PKCE code verifier.


grantType

readonly grantType: "refresh_token" | "authorization_code" | "client_credentials"

Defined in: src/auth/oauth/oauth-service.ts:93

Grant type.


redirectUri?

readonly optional redirectUri: string

Defined in: src/auth/oauth/oauth-service.ts:113

Redirect URI (authorization_code grant).


refreshToken?

readonly optional refreshToken: string

Defined in: src/auth/oauth/oauth-service.ts:123

Refresh token (refresh_token grant).


scope?

readonly optional scope: string

Defined in: src/auth/oauth/oauth-service.ts:128

Requested scopes.