# 403 error on token endpoint

**URL:** <https://community.auth0.com/t/403-error-on-token-endpoint/51380>\
**Category:** Get Help\
**Created:** [October 12, 2020, 1:47am UTC](https://community.auth0.com/t/403-error-on-token-endpoint/51380 "2020-10-12T01:47:34Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Illidev](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/illidev/32/24846_2.png) [@Illidev](https://community.auth0.com/u/Illidev)\
**Post date:** [October 12, 2020, 1:47am UTC](https://community.auth0.com/t/403-error-on-token-endpoint/51380/1 "2020-10-12T01:47:35Z")

</div>

Hi,  
I’m trying to authenticate via a a chrome extension. Using identity.launchWebAuthFlow i can correctly get a code but when i try to exchange this code for an access\_token and a refresh\_token, i get a 403 error.  
The url is correctly put in the permissions, i use a fetch to POST to the token endpoint, the data is correctly form encoded.

---

<div class="post-metadata">

**Author:** ![sidharth.chaudhary](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/sidharth.chaudhary/32/20686_2.png) [@sidharth.chaudhary](https://community.auth0.com/u/sidharth.chaudhary)\
**Post date:** [October 12, 2020, 9:47pm UTC](https://community.auth0.com/t/403-error-on-token-endpoint/51380/2 "2020-10-12T21:47:14Z")

</div>

Hey @Illidev, Welcome to the Auth0 Community!

What type of application have you configured on Auth0 Side? Regular Webapp or SPA?  
If you can DM me your HAR file to have a look will be great!

> **[Generate and Analyze HAR Files](https://auth0.com/docs/troubleshoot/troubleshooting-tools/generate-and-analyze-har-files)**
>
> Learn how to troubleshoot with HAR files and steps to generate a HAR file.

Regards,  
Sid

---

<div class="post-metadata">

**Author:** ![Illidev](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/illidev/32/24846_2.png) [@Illidev](https://community.auth0.com/u/Illidev)\
**Post date:** [October 13, 2020, 1:56am UTC](https://community.auth0.com/t/403-error-on-token-endpoint/51380/3 "2020-10-13T01:56:57Z")

</div>

I managed to do it my problem is solved thank you. I had an url encoding problem in the redirect url parameter.

---

<div class="post-metadata">

**Author:** ![sidharth.chaudhary](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/sidharth.chaudhary/32/20686_2.png) [@sidharth.chaudhary](https://community.auth0.com/u/sidharth.chaudhary)\
**Post date:** [October 13, 2020, 6:55am UTC](https://community.auth0.com/t/403-error-on-token-endpoint/51380/4 "2020-10-13T06:55:53Z")

</div>

Thanks Great, Thanks for letting us know!

---

<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:** [October 13, 2020, 11:43am UTC](https://community.auth0.com/t/403-error-on-token-endpoint/51380/6 "2020-10-13T11:43:22Z")

</div>

Can you check maybe the problem lies in what @Illidev suggested above?

---

<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, 2020, 11:43am UTC](https://community.auth0.com/t/403-error-on-token-endpoint/51380/7 "2020-10-28T11:43:28Z")

</div>

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