# getTokenSilently() fails with /token call

**URL:** <https://community.auth0.com/t/gettokensilently-fails-with-token-call/57265>\
**Category:** Get Help\
**Created:** [February 3, 2021, 6:21am UTC](https://community.auth0.com/t/gettokensilently-fails-with-token-call/57265 "2021-02-03T06:21:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![snehal.libra](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/snehal.libra/32/13221_2.png) [@snehal.libra](https://community.auth0.com/u/snehal.libra)\
**Post date:** [February 3, 2021, 6:21am UTC](https://community.auth0.com/t/gettokensilently-fails-with-token-call/57265/1 "2021-02-03T06:21:03Z")

</div>

We are trying to integrated SDK auth0-spa-js (1.12.1) and trying to call getTokenSilently().  
while calling getTokenSilently() we notice that in networks tab (chrome) we get /authorize call and then /token call.

/authorize is getting call successfully but /token call is failing without any error.

 ![image](https://global.discourse-cdn.com/auth0/original/3X/4/1/417a847ded73452ea45266224f62b7004a18fd94.png)

---

<div class="post-metadata">

**Author:** ![stephanie.chamblee](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/stephanie.chamblee/32/26087_2.png) [@stephanie.chamblee](https://community.auth0.com/u/stephanie.chamblee)\
**Post date:** [February 3, 2021, 2:28pm UTC](https://community.auth0.com/t/gettokensilently-fails-with-token-call/57265/3 "2021-02-03T14:28:48Z")

</div>

Hi @snehal.libra,

This can happen if a public client (e.g. a SPA) has the “Token Endpoint Authentication Method” set to anything but “None”. This is automatically set correctly if the “Application Type” is set to “Single Page Application”

Is your app configured as a SPA?

 ![screenshot-manage.auth0.com-2021.02.03-09_28_33](https://global.discourse-cdn.com/auth0/original/3X/8/b/8be8d4b5317ef7004b4a03f566a261792a7f1225.png)

---

<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:** [February 18, 2021, 2:29pm UTC](https://community.auth0.com/t/gettokensilently-fails-with-token-call/57265/4 "2021-02-18T14:29:16Z")

</div>

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