[Angular] How to revoke a refresh token on logout?

Please include the following information in your post:

  • Which SDK this is regarding: e.g. auth0-angular
  • SDK Version: e.g. 1.9.0
  • Platform Version: e.g. Angular 13.2.6
  • Code Snippets/Error Messages/Supporting Details/Screenshots:

There are 2 ways how I can revoke the refresh token (Revoke Refresh Tokens).

  1. With the Authentication API
    POST https://YOUR_DOMAIN/oauth/revoke with parameter token

  2. With the Management API but this option is not available on client app.

How to obtain the refresh token so I can pass through the /oauth/revoke API endpoint?

Hi @taras.hupalo ,

Welcome to the Auth0 Community!

How to obtain the refresh token so I can pass through the /oauth/revoke API endpoint?

This article explained how to get the refresh token. Hope this helps!