# Use Authorization Code multiple time

**URL:** <https://community.auth0.com/t/use-authorization-code-multiple-time/111602>\
**Category:** Get Help\
**Tags:** users, management-api\
**Created:** [July 19, 2023, 2:28pm UTC](https://community.auth0.com/t/use-authorization-code-multiple-time/111602 "2023-07-19T14:28:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![amiralam](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/amiralam/32/47910_2.png) [@amiralam](https://community.auth0.com/u/amiralam)\
**Post date:** [July 19, 2023, 2:28pm UTC](https://community.auth0.com/t/use-authorization-code-multiple-time/111602/1 "2023-07-19T14:28:49Z")

</div>

I am using auth0 in my desktop application using electron js.

I have made the login process in such a way that when user clicks on  
login it opens the login page in my web app, in that it redirects to the /autorize using react sdk.  
and when the callback is received, i want to send the same auth\_code to my electron js so it gets logged in.

But instead i got to know that it cant done that way because authz code is one time use only.

Please help me in here

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [July 19, 2023, 7:52pm UTC](https://community.auth0.com/t/use-authorization-code-multiple-time/111602/3 "2023-07-19T19:52:42Z")

</div>

Hi @amiralam,

Thanks for reaching out to the Auth0 Community!

Yes, your observation is correct. The authorization code is by specification one-time use only.

Reference: [RFC 6749 - The OAuth 2.0 Authorization Framework](https://datatracker.ietf.org/doc/html/rfc6749#section-4.1.2:~:text=The%20client%20MUST%20NOT%20use%20the,2.0%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20October%202012%0A%0A%0A%20%20%20%20%20%20%20%20%20more%20than%20once).

Please let us know if you have any additional questions.

Thanks,  
Rueben

---

<div class="post-metadata">

**Author:** ![amiralam](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/amiralam/32/47910_2.png) [@amiralam](https://community.auth0.com/u/amiralam)\
**Post date:** [July 20, 2023, 6:51am UTC](https://community.auth0.com/t/use-authorization-code-multiple-time/111602/4 "2023-07-20T06:51:59Z")

</div>

Yes, I issued a authorizarion code using auth0 react sdk, and i am passing that authz code back to my desktop app using deeplink, it;s asking for code\_verifier, but i didnt passed any

---

<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:** [August 3, 2023, 6:52am UTC](https://community.auth0.com/t/use-authorization-code-multiple-time/111602/5 "2023-08-03T06:52:16Z")

</div>

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