# How to get the Access Token after Creating new User

**URL:** <https://community.auth0.com/t/how-to-get-the-access-token-after-creating-new-user/117506>\
**Category:** Get Help\
**Tags:** users, management-api\
**Created:** [October 1, 2023, 10:30am UTC](https://community.auth0.com/t/how-to-get-the-access-token-after-creating-new-user/117506 "2023-10-01T10:30:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tanmay](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/tanmay/32/48754_2.png) [@tanmay](https://community.auth0.com/u/tanmay)\
**Post date:** [October 1, 2023, 10:30am UTC](https://community.auth0.com/t/how-to-get-the-access-token-after-creating-new-user/117506/1 "2023-10-01T10:30:40Z")

</div>

Hey there, I am using the `/api/v2/users` for creating a user through my own Reactjs form, after the user is successfully created how do I get their access-token. Do I have to call `oauth/token` endpoint or is there a better way.  
Thanks

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [December 23, 2023, 12:20am UTC](https://community.auth0.com/t/how-to-get-the-access-token-after-creating-new-user/117506/3 "2023-12-23T00:20:54Z")

</div>

Hey there @tanmay welcome to the community!

> [@tanmay](#):
>
> Do I have to call `oauth/token` endpoint or is there a better way.

Depending on your application and use case, there are a variety of login flows that are applicable. Typically, a front end application using React will utilize an auth code + PKCE flow. This is what our [React SDK](https://github.com/auth0/auth0-react) supports by default.

---

<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:** [January 6, 2024, 12:20am UTC](https://community.auth0.com/t/how-to-get-the-access-token-after-creating-new-user/117506/4 "2024-01-06T00:20:54Z")

</div>

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