Class OAuth

OAuth 2.0 flows.

Hierarchy

  • BaseAuthAPI
    • OAuth

Constructors

Properties

clientAssertionSigningAlg?: string
clientAssertionSigningKey?: string
clientId: string
clientSecret?: string
configuration: Configuration
domain: string
useMTLS?: boolean

Methods

  • Use this endpoint to invalidate a Refresh Token if it has been compromised.

    The behaviour of this endpoint depends on the state of the Refresh Token Revocation Deletes Grant toggle. If this toggle is enabled, then each revocation request invalidates not only the specific token, but all other tokens based on the same authorization grant. This means that all Refresh Tokens that have been issued for the same user, application, and audience will be revoked. If this toggle is disabled, then only the refresh token is revoked, while the grant is left intact.

    See: https://auth0.com/docs/api/authentication#revoke-refresh-token

    Example

    const auth0 = new AuthenticationApi({
    domain: 'my-domain.auth0.com',
    clientId: 'myClientId'
    clientSecret: 'myClientSecret'
    });

    await auth0.oauth.revokeRefreshToken({ token: 'myrefreshtoken' })

    Parameters

    Returns Promise<VoidApiResponse>