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

**URL:** <https://community.auth0.com/t/angular-how-to-revoke-a-refresh-token-on-logout/81802>\
**Category:** Get Help\
**Tags:** angular, logout, refresh-token\
**Created:** [April 15, 2022, 2:55am UTC](https://community.auth0.com/t/angular-how-to-revoke-a-refresh-token-on-logout/81802 "2022-04-15T02:55:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![taras.hupalo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/taras.hupalo/32/36621_2.png) [@taras.hupalo](https://community.auth0.com/u/taras.hupalo)\
**Post date:** [April 15, 2022, 2:55am UTC](https://community.auth0.com/t/angular-how-to-revoke-a-refresh-token-on-logout/81802/1 "2022-04-15T02:55:41Z")

</div>

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](https://auth0.com/docs/secure/tokens/refresh-tokens/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?

---

<div class="post-metadata">

**Author:** ![lihua.zhang](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/lihua.zhang/32/39683_2.png) [@lihua.zhang](https://community.auth0.com/u/lihua.zhang)\
**Post date:** [April 29, 2022, 5:05pm UTC](https://community.auth0.com/t/angular-how-to-revoke-a-refresh-token-on-logout/81802/3 "2022-04-29T17:05:03Z")

</div>

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](https://auth0.com/docs/secure/tokens/refresh-tokens/get-refresh-tokens) article explained how to get the refresh token. Hope this helps!

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [December 21, 2022, 4:13pm UTC](https://community.auth0.com/t/angular-how-to-revoke-a-refresh-token-on-logout/81802/4 "2022-12-21T16:13:57Z")

</div>


