OAuth2Client
A generic client for OAuth 2.0 authorization code flow based on RFC 6749, RFC 7009, and RFC 7636.
Only client password authentication is supported and is done with the HTTP basic authentication scheme.
Constructor
function constructor(
clientId: string,
clientPassword: string | null,
redirectURI: string | null
): this;
Parameters
clientId
clientPassword
redirectURI
Methods
createAuthorizationURL()
createAuthorizationURLWithPKCE()
refreshAccessToken()
revokeToken()
validateAuthorizationCode()
Properties
interface Properties {
clientId: string;
}
clientId