# Apple login not returning a token using auth0-spa-js

**URL:** <https://community.auth0.com/t/apple-login-not-returning-a-token-using-auth0-spa-js/69558>\
**Category:** Get Help\
**Created:** [September 13, 2021, 5:49pm UTC](https://community.auth0.com/t/apple-login-not-returning-a-token-using-auth0-spa-js/69558 "2021-09-13T17:49:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![douglchoi](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/douglchoi/32/26307_2.png) [@douglchoi](https://community.auth0.com/u/douglchoi)\
**Post date:** [September 13, 2021, 5:49pm UTC](https://community.auth0.com/t/apple-login-not-returning-a-token-using-auth0-spa-js/69558/1 "2021-09-13T17:49:00Z")

</div>

I am trying to get our universal login to support Apple login in our React web application. I am using [auth0-spa-js](https://github.com/auth0/auth0-spa-js). The Apple login goes through successfully, but after the redirect back to our page, the following call to `getTokenSilently` returns an empty token. We are however able to get the user’s information.

```auto
await getTokenSilently({ audience: '<audience>' })

```

Currently, the login supports Google, as well as custom username/password login. Both login and return the token successfully.

Any ideas what could be going on? Thanks!

---

<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:** [September 14, 2021, 4:19pm UTC](https://community.auth0.com/t/apple-login-not-returning-a-token-using-auth0-spa-js/69558/3 "2021-09-14T16:19:30Z")

</div>

Hi @douglchoi,

Welcome to the Auth0 Community!

Can you give an example of an empty token? What do you mean by that?

---

<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 23, 2021, 4:55pm UTC](https://community.auth0.com/t/apple-login-not-returning-a-token-using-auth0-spa-js/69558/4 "2021-12-23T16:55:05Z")

</div>

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