# Token Endpoint Authentication Method

**URL:** <https://community.auth0.com/t/token-endpoint-authentication-method/123714>\
**Category:** Get Help\
**Tags:** login-experience, new-universal-login-experience\
**Created:** [December 26, 2023, 6:57pm UTC](https://community.auth0.com/t/token-endpoint-authentication-method/123714 "2023-12-26T18:57:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vuesomedev](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/vuesomedev/32/53513_2.png) [@vuesomedev](https://community.auth0.com/u/vuesomedev)\
**Post date:** [December 26, 2023, 6:57pm UTC](https://community.auth0.com/t/token-endpoint-authentication-method/123714/1 "2023-12-26T18:57:27Z")

</div>

I’m trying to implement SPA authentication and follow the React: Login tutorial.  
I’m trying to configure my application but can’t find this configuration: **Token Endpoint Authentication Method**  
Without setting it, I can log in with `loginWithRedirect` but after returning to the page (on localhost) but the `user` is always empty even if I see successful authentication in the logs. In the network tab I don’t see any requests for user data although after returning from login, the URL contains the `code` and `state` query parameters  
What am I doing wrong?

---

<div class="post-metadata">

**Author:** ![SaqibHussain](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/saqibhussain/32/42924_2.png) [@SaqibHussain](https://community.auth0.com/u/SaqibHussain)\
**Post date:** [December 26, 2023, 10:58pm UTC](https://community.auth0.com/t/token-endpoint-authentication-method/123714/2 "2023-12-26T22:58:14Z")

</div>

Hi @vuesomedev

Welcome to the Auth0 Community.

If you have configured a SPA application then you just need to ensure on Auth0 that the Application Type is set to Single Page Application:

 ![image](https://global.discourse-cdn.com/auth0/original/3X/c/c/cc17e56d4acd687feded6a17876d7e12aa8d6e6f.png)

To troubleshoot the issue I would download the sample app from here [https://auth0.com/docs/quickstart/spa/react](https://auth0.com/docs/quickstart/spa/react) wire it up to your tenant and see if you can replicate the issue. If it works here you can compare with your project to check differences and isolate the issue that way.

Let us know if you need anything further.  
Warm regards.

---

<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 9, 2024, 10:58pm UTC](https://community.auth0.com/t/token-endpoint-authentication-method/123714/3 "2024-01-09T22:58:42Z")

</div>

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