Skip to content

getToken

getToken(deps, platform, scopes): Promise<{ token: string; tokenType: string; }>

Defined in: packages/core/src/ags.ts:113

OAuth2 client_credentials token, authenticated by a signed JWT client assertion (iss = sub = clientId, aud = tokenEndpoint, short exp, unique jti, header kid). Returns the bearer token + its type.

AgsDeps

Platform

string[]

Promise<{ token: string; tokenType: string; }>