# Help in making auth tokens to access API

**URL:** <https://community.auth0.com/t/help-in-making-auth-tokens-to-access-api/7588>\
**Category:** Get Help\
**Tags:** jwt, express-jwt, react\
**Created:** [July 20, 2017, 12:12am UTC](https://community.auth0.com/t/help-in-making-auth-tokens-to-access-api/7588 "2017-07-20T00:12:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![carbonfootprintapi](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@carbonfootprintapi](https://community.auth0.com/u/carbonfootprintapi)\
**Post date:** [July 20, 2017, 12:12am UTC](https://community.auth0.com/t/help-in-making-auth-tokens-to-access-api/7588/1 "2017-07-20T00:12:32Z")

</div>

We are new to Auth0 and currently looking for a solution for our SPA and API. We have a resource API based on Express js and a React SPA. We have implemented the authentication on SPA but we also want to give the user an API KEY that he can send as an access token to access our API and also implement scope limiting and rate limiting using the same. So the user uses this key for accessing the API and we can log and limit the usage.

---

<div class="post-metadata">

**Author:** ![prashantT](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/prashantt/32/6002_2.png) [@prashantT](https://community.auth0.com/u/prashantT)\
**Post date:** [July 20, 2017, 5:34am UTC](https://community.auth0.com/t/help-in-making-auth-tokens-to-access-api/7588/2 "2017-07-20T05:34:28Z")

</div>

I suggest reading over our API Authorization docs, which can achieve your requirements:

> **[Authentication and Authorization Flows](https://auth0.com/docs/get-started/authentication-and-authorization-flow)**
>
> Learn about the various flows used for authentication and authorization of applications and APIs.

---

<div class="post-metadata">

**Author:** ![carbonfootprintapi](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@carbonfootprintapi](https://community.auth0.com/u/carbonfootprintapi)\
**Post date:** [July 20, 2017, 10:46pm UTC](https://community.auth0.com/t/help-in-making-auth-tokens-to-access-api/7588/3 "2017-07-20T22:46:36Z")

</div>

Yes i have been over this part of the documentation couple of times , one part that i don’t get is how do I create a access token for the API from the React SPA for a specific user ? And such that every request using that token is logged in auth0.

---

<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:** [March 2, 2018, 5:55am UTC](https://community.auth0.com/t/help-in-making-auth-tokens-to-access-api/7588/4 "2018-03-02T05:55:30Z")

</div>


