# Refresh Token not returned when using Auth0.swift with "Sign In With Apple" flow

**URL:** <https://community.auth0.com/t/refresh-token-not-returned-when-using-auth0-swift-with-sign-in-with-apple-flow/56643>\
**Category:** Get Help\
**Tags:** sdk, swift, refresh-tokens, auth0\
**Created:** [January 22, 2021, 5:19am UTC](https://community.auth0.com/t/refresh-token-not-returned-when-using-auth0-swift-with-sign-in-with-apple-flow/56643 "2021-01-22T05:19:15Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![FrostbyteApps](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/frostbyteapps/32/25731_2.png) [@FrostbyteApps](https://community.auth0.com/u/FrostbyteApps)\
**Post date:** [January 22, 2021, 5:19am UTC](https://community.auth0.com/t/refresh-token-not-returned-when-using-auth0-swift-with-sign-in-with-apple-flow/56643/1 "2021-01-22T05:19:15Z")

</div>

Please include the following information in your post:

- **Which SDK this is regarding:** e.g. auth0.swift
- **SDK Version:** 1.30.1
- **Platform Version:** iOS 14

I followed the example tutorial for setting up “Sign In With Apple” by creating a Native application and following that whole process. I managed to get everything working and authentication was a breeze.

However, I noticed when coming to refresh my token, that the CredentialsManager had no refresh token stored. After logging in again, I noticed that the response from the login call was ALSO missing the refresh token. I have refresh tokens enabled on my application settings and I’m using the default scopes which includes offline\_access. Any suggestions on how to debug this further?

---

<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:** [January 22, 2021, 3:04pm UTC](https://community.auth0.com/t/refresh-token-not-returned-when-using-auth0-swift-with-sign-in-with-apple-flow/56643/3 "2021-01-22T15:04:32Z")

</div>

Hey there!

Let me reproduce that myself and get back to you soon!

---

<div class="post-metadata">

**Author:** ![FrostbyteApps](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/frostbyteapps/32/25731_2.png) [@FrostbyteApps](https://community.auth0.com/u/FrostbyteApps)\
**Post date:** [January 22, 2021, 3:14pm UTC](https://community.auth0.com/t/refresh-token-not-returned-when-using-auth0-swift-with-sign-in-with-apple-flow/56643/4 "2021-01-22T15:14:22Z")

</div>

Sounds good! Thanks!

---

<div class="post-metadata">

**Author:** ![FrostbyteApps](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/frostbyteapps/32/25731_2.png) [@FrostbyteApps](https://community.auth0.com/u/FrostbyteApps)\
**Post date:** [January 22, 2021, 4:27pm UTC](https://community.auth0.com/t/refresh-token-not-returned-when-using-auth0-swift-with-sign-in-with-apple-flow/56643/5 "2021-01-22T16:27:34Z")

</div>

For what it’s worth, I posted an issue on the Auth0.swift SDK repo as well. I’m not sure where the issue’s source is, but it has more information about my use case there.

[https://github.com/auth0/Auth0.swift/issues/441](https://github.com/auth0/Auth0.swift/issues/441)

---

<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:** [January 25, 2021, 11:32am UTC](https://community.auth0.com/t/refresh-token-not-returned-when-using-auth0-swift-with-sign-in-with-apple-flow/56643/6 "2021-01-25T11:32:05Z")

</div>

Perfect! I’ll ping repo maintainers in a few minutes!

---

<div class="post-metadata">

**Author:** ![FrostbyteApps](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/frostbyteapps/32/25731_2.png) [@FrostbyteApps](https://community.auth0.com/u/FrostbyteApps)\
**Post date:** [January 29, 2021, 3:46pm UTC](https://community.auth0.com/t/refresh-token-not-returned-when-using-auth0-swift-with-sign-in-with-apple-flow/56643/7 "2021-01-29T15:46:19Z")

</div>

Looks like we discovered the issue. Information is on the Github Issue link. I don’t recall the docs anywhere stating I needed to enable offline\_access on my API as well as my application. Might be a good thing to add as a note to some of the guides.

Thanks for your team’s help!

---

<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:** [February 1, 2021, 1:04pm UTC](https://community.auth0.com/t/refresh-token-not-returned-when-using-auth0-swift-with-sign-in-with-apple-flow/56643/8 "2021-02-01T13:04:27Z")

</div>

Perfect! I’ll relay the info to appropriate team!

---

<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 16, 2021, 1:04pm UTC](https://community.auth0.com/t/refresh-token-not-returned-when-using-auth0-swift-with-sign-in-with-apple-flow/56643/9 "2021-02-16T13:04:33Z")

</div>

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