# Post Login action replace access token

**URL:** <https://community.auth0.com/t/post-login-action-replace-access-token/71230>\
**Category:** Get Help\
**Created:** [October 13, 2021, 8:40am UTC](https://community.auth0.com/t/post-login-action-replace-access-token/71230 "2021-10-13T08:40:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dmoldovan](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dmoldovan/32/13487_2.png) [@dmoldovan](https://community.auth0.com/u/dmoldovan)\
**Post date:** [October 13, 2021, 8:40am UTC](https://community.auth0.com/t/post-login-action-replace-access-token/71230/1 "2021-10-13T08:40:45Z")

</div>

Looking to use auth0 as purely an identity provider, while I have my own authorization layer that can translate an identity token into an access token with the respective claims.  
As such, I can build a post login action that would decorate the auth0 access token with the claims from my own authorization layer, however I’m wondering if it’s possible to replace the access token in its entirety and just return the access token that my authorization layer api provides

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [October 13, 2021, 5:10pm UTC](https://community.auth0.com/t/post-login-action-replace-access-token/71230/3 "2021-10-13T17:10:06Z")

</div>

Hi @dmoldovan,

Welcome to the Auth0 Community!

You cannot use an Action to replace the access token in its entirety.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [October 28, 2021, 5:10pm UTC](https://community.auth0.com/t/post-login-action-replace-access-token/71230/4 "2021-10-28T17:10:26Z")

</div>

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.
