# Access\_token or id\_token

**URL:** <https://community.auth0.com/t/access-token-or-id-token/53327>\
**Category:** Get Help\
**Created:** [November 16, 2020, 11:02pm UTC](https://community.auth0.com/t/access-token-or-id-token/53327 "2020-11-16T23:02:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![patrickcorrigan7](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/patrickcorrigan7/32/8070_2.png) [@patrickcorrigan7](https://community.auth0.com/u/patrickcorrigan7)\
**Post date:** [November 16, 2020, 11:02pm UTC](https://community.auth0.com/t/access-token-or-id-token/53327/1 "2020-11-16T23:02:59Z")

</div>

I’m trying to implement a single page application and an API

My single page application has google as an authentication method.

My frontend makes a request to [https://blah.eu.auth0.com/oauth/token](https://blah.eu.auth0.com/oauth/token) and gives me back

an access\_token which is a 32 char token and an id\_token which seems to be a jwt token that contains my google information.

Which of these should I send to my backend. Should I send the access token and then use that to get the user id? Or the jwt token and decode it to get the userId

---

<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:** [November 16, 2020, 11:27pm UTC](https://community.auth0.com/t/access-token-or-id-token/53327/3 "2020-11-16T23:27:52Z")

</div>

Hi @patrickcorrigan7,

If you are looking to send your backend API an access token you should register it and add the identifier as the token audience. Here is an FAQ about it:

[https://community.auth0.com/t/why-is-my-access-token-not-a-jwt-opaque-token/31028](https://community.auth0.com/t/why-is-my-access-token-not-a-jwt-opaque-token/31028)

---

<div class="post-metadata">

**Author:** ![patrickcorrigan7](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/patrickcorrigan7/32/8070_2.png) [@patrickcorrigan7](https://community.auth0.com/u/patrickcorrigan7)\
**Post date:** [December 1, 2020, 3:28am UTC](https://community.auth0.com/t/access-token-or-id-token/53327/4 "2020-12-01T03:28:50Z")

</div>

Thank you 🙂 This worked

---

<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:** [December 16, 2020, 3:28am UTC](https://community.auth0.com/t/access-token-or-id-token/53327/5 "2020-12-16T03:28:52Z")

</div>

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