# How do I verify the user on the backend?

**URL:** <https://community.auth0.com/t/how-do-i-verify-the-user-on-the-backend/20670>\
**Category:** Get Help\
**Created:** [January 29, 2019, 10:30am UTC](https://community.auth0.com/t/how-do-i-verify-the-user-on-the-backend/20670 "2019-01-29T10:30:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Russell](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@Russell](https://community.auth0.com/u/Russell)\
**Post date:** [January 29, 2019, 10:30am UTC](https://community.auth0.com/t/how-do-i-verify-the-user-on-the-backend/20670/1 "2019-01-29T10:30:44Z")

</div>

I have a front end web-app & a backend api. On the backend api, I want to get the current users email.

Currently, on the web-app, I have a `Access_Token` and a `Id_Token` The Access\_Token is what I need to authenticate for the api, but it does not have the user info that I need (email)

The `Id_Token` can be decrypted to get the users email

Here is the functionality that I want: If someone hits `GET /friends` My API will only fetch the friends for the currently authenticated user

What is the best way do this? The options I thought of so far:

1. Send both the `Access_Token` and `Id_Token` to the API, and decrypt the `Id_Token` for the user data
2. Send only the `Access_Token` , then use the `Access_Token` on the API to request a new `Id_Token` from auth0
3. On the web-app, decrypt the `Access_Token` , add the email to it, then encrypt

Thanks in advance for any help!

---

<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:** [March 7, 2019, 2:23am UTC](https://community.auth0.com/t/how-do-i-verify-the-user-on-the-backend/20670/2 "2019-03-07T02:23:34Z")

</div>

As the email is a [standard OIDC claim](https://auth0.com/docs/scopes/current/oidc-scopes#standard-claims), you can request this in your authentication request using the `scope` parameter.

Here is a sample showing how you can request the standard OIDC claims (including email) in your authentication flow.

> **[Sample Use Cases: Scopes and Claims](https://auth0.com/docs/get-started/apis/scopes/sample-use-cases-scopes-and-claims)**
>
> Learn how to use scopes and claims with applications and APIs.

---

<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:** [August 30, 2019, 9:44am UTC](https://community.auth0.com/t/how-do-i-verify-the-user-on-the-backend/20670/4 "2019-08-30T09:44:23Z")

</div>


