# Is there a way to send user info to auth0 to get user access token for SPA application

**URL:** <https://community.auth0.com/t/is-there-a-way-to-send-user-info-to-auth0-to-get-user-access-token-for-spa-application/122058>\
**Category:** Get Help\
**Tags:** login-experience, new-universal-login-experience\
**Created:** [November 30, 2023, 3:45pm UTC](https://community.auth0.com/t/is-there-a-way-to-send-user-info-to-auth0-to-get-user-access-token-for-spa-application/122058 "2023-11-30T15:45:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nischal.colluru](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/nischal.colluru/32/51240_2.png) [@nischal.colluru](https://community.auth0.com/u/nischal.colluru)\
**Post date:** [November 30, 2023, 3:45pm UTC](https://community.auth0.com/t/is-there-a-way-to-send-user-info-to-auth0-to-get-user-access-token-for-spa-application/122058/1 "2023-11-30T15:45:39Z")

</div>

Is there a way to send user info to auth0 to get user access token for SPA application.

I only see a way to send client credentials via post call to get access token but thats not user specific.  
Problem that we are trying to solve:  
User A is part of application X and Y. User logins to application X via /authorize and gets access token as expected.  
Now user wants to navigate to application Y where the user has the same identity i.e. email\_id. We want the user to redirect to application Y without logging in again. Is there a way to send user email id to auth0 and request for access token for app Y and redirect to app Y by setting the received token.

---

<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 1, 2023, 12:13am UTC](https://community.auth0.com/t/is-there-a-way-to-send-user-info-to-auth0-to-get-user-access-token-for-spa-application/122058/3 "2023-12-01T00:13:49Z")

</div>

Hello @nischal.colluru welcome to the community!

> [@nischal.colluru](#):
>
> Is there a way to send user info to auth0 to get user access token for SPA application.
> 
> I only see a way to send client credentials via post call to get access token but thats not user specific.

All of our SPA SDKS implement the [authorization code flow + PKCE](https://auth0.com/docs/get-started/authentication-and-authorization-flow/authorization-code-flow-with-proof-key-for-code-exchange-pkce) which is the best practice for authenticating/authorizing users in a SPA.

> [@nischal.colluru](#):
>
> Now user wants to navigate to application Y where the user has the same identity i.e. email\_id. We want the user to redirect to application Y without logging in again.

This describes [SSO](https://auth0.com/docs/authenticate/single-sign-on) which is also supported by Auth0 SPA SDKs by way of [Universal Login](https://auth0.com/docs/authenticate/login/auth0-universal-login).

---

<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 15, 2023, 12:14am UTC](https://community.auth0.com/t/is-there-a-way-to-send-user-info-to-auth0-to-get-user-access-token-for-spa-application/122058/4 "2023-12-15T00:14:10Z")

</div>

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