# \#swift

**URL:** https://community.auth0.com/tag/swift/375.md

[Latest](https://community.auth0.com/latest.md) · [Categories](https://community.auth0.com/categories.md) · [Tags](https://community.auth0.com/tags.md)

---

## [Auth0 facebook Login](https://community.auth0.com/t/auth0-facebook-login/16937)

<div class="topic-metadata">

**Author:** [@haneenalawneh](https://community.auth0.com/u/haneenalawneh)\
**Replies:** 4\
**Last updated:** [July 22, 2025, 8:27pm UTC](https://community.auth0.com/t/auth0-facebook-login/16937 "2025-07-22T20:27:05Z")

</div>

I’m currently developing an IOS app using auth0 for authentication, is there any way when I get redirected for facebook login I get the following screen in the browser in case a user has the facebook app installed and…

---

## [Disabling signups for database connection not working as expected](https://community.auth0.com/t/disabling-signups-for-database-connection-not-working-as-expected/87349)

<div class="topic-metadata">

**Author:** [@jbarbosa](https://community.auth0.com/u/jbarbosa)\
**Replies:** 1\
**Last updated:** [January 17, 2025, 6:44pm UTC](https://community.auth0.com/t/disabling-signups-for-database-connection-not-working-as-expected/87349 "2025-01-17T18:44:57Z")

</div>

In my setup, i have one WebApp and a Mobile app (iOS). The purpose of the webapp is to onboard/signup users that are going to use the mobile app. I want the signup in the webapp to be passwordless (sms), and the login in…

---

## [JWT invalid signature in Mobile + API (Swift + Django)](https://community.auth0.com/t/jwt-invalid-signature-in-mobile-api-swift-django/106960)

<div class="topic-metadata">

**Author:** [@ferranconde](https://community.auth0.com/u/ferranconde)\
**Replies:** 3\
**Last updated:** [May 17, 2023, 6:25pm UTC](https://community.auth0.com/t/jwt-invalid-signature-in-mobile-api-swift-django/106960 "2023-05-17T18:25:14Z")

</div>

Hello everyone, I’m implementing an iOS application that needs to communicate with a Python/Django backend. For that, I am following the Mobile + API architecture scenario. Instead of Android and Node.js, I am following…

---

## [What is the equivilent of \`connectionScope\` in Auth0-SPA-JS?](https://community.auth0.com/t/what-is-the-equivilent-of-connectionscope-in-auth0-spa-js/85741)

<div class="topic-metadata">

**Author:** [@jgleason](https://community.auth0.com/u/jgleason)\
**Replies:** 2\
**Last updated:** [June 27, 2022, 2:57pm UTC](https://community.auth0.com/t/what-is-the-equivilent-of-connectionscope-in-auth0-spa-js/85741 "2022-06-27T14:57:58Z")

</div>

Currently I have the following in my spa… createAuth0({ domain: "...", client\_id: "...", redirect\_uri: window.location.origin, prompt: "consent", useRefreshTokens: true, }), A cowo…

---

## [What is the Swift equivilent of getAccessTokenSilently](https://community.auth0.com/t/what-is-the-swift-equivilent-of-getaccesstokensilently/85626)

<div class="topic-metadata">

**Author:** [@jgleason](https://community.auth0.com/u/jgleason)\
**Replies:** 2\
**Last updated:** [June 27, 2022, 2:57pm UTC](https://community.auth0.com/t/what-is-the-swift-equivilent-of-getaccesstokensilently/85626 "2022-06-27T14:57:14Z")

</div>

I am currently authorizing specific APIs on my browser based application using getAccessTokenSilently from @auth0/auth0-vue. I don’t see any similar option for the Swift library. Is there a similar concept? How do I get …

---

## [Access token when obtained from iOS results in 401 unauthorized while from react-admin is ok](https://community.auth0.com/t/access-token-when-obtained-from-ios-results-in-401-unauthorized-while-from-react-admin-is-ok/71115)

<div class="topic-metadata">

**Author:** [@kennethphough](https://community.auth0.com/u/kennethphough)\
**Replies:** 2\
**Last updated:** [October 12, 2021, 9:26am UTC](https://community.auth0.com/t/access-token-when-obtained-from-ios-results-in-401-unauthorized-while-from-react-admin-is-ok/71115 "2021-10-12T09:26:46Z")

</div>

I have a nestJS backend, a react-admin front-end and a mobile app written in swift. When I access the backend from the react-admin front end I am able to successfully login and make requests to the backend. However, wi…

---

## [Does Swift Lock has audience?](https://community.auth0.com/t/does-swift-lock-has-audience/60786)

<div class="topic-metadata">

**Author:** [@ra.sharifi1995](https://community.auth0.com/u/ra.sharifi1995)\
**Replies:** 1\
**Last updated:** [April 8, 2021, 9:22pm UTC](https://community.auth0.com/t/does-swift-lock-has-audience/60786 "2021-04-08T21:22:42Z")

</div>

I didn’t find any documentation or functions regarding setting the audience for getting the right access tokens. Is there any fix to that? or I should just switch to webAuth. Thanks.

---

## [Refresh Token not returned when using Auth0.swift with "Sign In With Apple" flow](https://community.auth0.com/t/refresh-token-not-returned-when-using-auth0-swift-with-sign-in-with-apple-flow/56643)

<div class="topic-metadata">

**Author:** [@FrostbyteApps](https://community.auth0.com/u/FrostbyteApps)\
**Replies:** 6\
**Last updated:** [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 "2021-02-01T13:04:27Z")

</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” …

---

## [Third Party Applications](https://community.auth0.com/t/third-party-applications/12523)

<div class="topic-metadata">

**Author:** [@loramatt](https://community.auth0.com/u/loramatt)\
**Replies:** 3\
**Last updated:** [June 28, 2018, 3:22pm UTC](https://community.auth0.com/t/third-party-applications/12523 "2018-06-28T15:22:53Z")

</div>

Hello, i’m trying to emulate te flows i’ll need to create with Auth0, but i’m unable to test a third party application as i get keep getting the error "You should not be hitting this endpoint. Make sure to use the code s…

---

## [Swift log-out function not working correctly](https://community.auth0.com/t/swift-log-out-function-not-working-correctly/19968)

<div class="topic-metadata">

**Author:** [@MauriceZedde](https://community.auth0.com/u/MauriceZedde)\
**Replies:** 1\
**Last updated:** [February 4, 2019, 4:16pm UTC](https://community.auth0.com/t/swift-log-out-function-not-working-correctly/19968 "2019-02-04T16:16:02Z")

</div>

Hi, Not sure if I post my question in the correct topic but I have troubles with log-out. In the app I use the following code: Auth0 .webAuth() .clearSession(federated: true) { (Bool) in A0SimpleKeychain.init(servi…

---

## [How to detect when the user selects the signup tab](https://community.auth0.com/t/how-to-detect-when-the-user-selects-the-signup-tab/20642)

<div class="topic-metadata">

**Author:** [@camiloalejo27](https://community.auth0.com/u/camiloalejo27)\
**Replies:** 3\
**Last updated:** [January 29, 2019, 9:45am UTC](https://community.auth0.com/t/how-to-detect-when-the-user-selects-the-signup-tab/20642 "2019-01-29T09:45:26Z")

</div>

Hello All, hope all is well, I just want to know if there’s any way to detect when the user selects the SignUp tab, or detect any event when the user taps the sign up button? Thanks.

---

## [How to Re-login the user silently in background after the token is expired?](https://community.auth0.com/t/how-to-re-login-the-user-silently-in-background-after-the-token-is-expired/20529)

<div class="topic-metadata">

**Author:** [@MuraliKathir](https://community.auth0.com/u/MuraliKathir)\
**Replies:** 1\
**Last updated:** [January 25, 2019, 3:26pm UTC](https://community.auth0.com/t/how-to-re-login-the-user-silently-in-background-after-the-token-is-expired/20529 "2019-01-25T15:26:49Z")

</div>

Once I log in the user with successful credentials, I have a time duration which the token expires. When the token expires, how to log in the user automatically in the background? I use the iOS Swift SDK.

---

## [Link Button on Homescreen on iPhone does not work](https://community.auth0.com/t/link-button-on-homescreen-on-iphone-does-not-work/14967)

<div class="topic-metadata">

**Author:** [@indianscout](https://community.auth0.com/u/indianscout)\
**Replies:** 1\
**Last updated:** [September 13, 2018, 10:35am UTC](https://community.auth0.com/t/link-button-on-homescreen-on-iphone-does-not-work/14967 "2018-09-13T10:35:23Z")

</div>

The problem below exists only for iOS devices (Chrom on Andoid works as expected). For quick access to my app I want to add a homescreen icons on the desktop. After login on Auth0 I end up on the actual app. Then adding…

---

## [Can't retrieve user metadata in Swift](https://community.auth0.com/t/cant-retrieve-user-metadata-in-swift/9794)

<div class="topic-metadata">

**Author:** [@Eros](https://community.auth0.com/u/Eros)\
**Replies:** 1\
**Last updated:** [March 14, 2018, 4:02pm UTC](https://community.auth0.com/t/cant-retrieve-user-metadata-in-swift/9794 "2018-03-14T16:02:50Z")

</div>

Hi! I’m trying to retrieve the user\_metadata with the Auth0.swift toolkit but i have a problem. I’m using the following example that appear in the documentation: Blockquote Auth0 .users(token: idToken) .get(“user …

---

## [Auth0 swift facebook login error](https://community.auth0.com/t/auth0-swift-facebook-login-error/6481)

<div class="topic-metadata">

**Author:** [@VedaKo\_App](https://community.auth0.com/u/VedaKo_App)\
**Replies:** 1\
**Last updated:** [February 13, 2018, 6:14pm UTC](https://community.auth0.com/t/auth0-swift-facebook-login-error/6481 "2018-02-13T18:14:51Z")

</div>

Cannot login to Facebook. even cannot login in the sample app. FYI - I have put the callback URL. Error - Can’t load URL: The domain of this URL isn’t included in the app’s domains. To be able to load this URL, add all…

---

## [Errors in Lock and passwordless SMS login](https://community.auth0.com/t/errors-in-lock-and-passwordless-sms-login/9406)

<div class="topic-metadata">

**Author:** [@doug.wk.yuen](https://community.auth0.com/u/doug.wk.yuen)\
**Replies:** 2\
**Last updated:** [February 13, 2018, 5:43am UTC](https://community.auth0.com/t/errors-in-lock-and-passwordless-sms-login/9406 "2018-02-13T05:43:42Z")

</div>

I’m currently building a passwordless login system for a Swift app using Lock, and I’m using Twilio to send the SMS OTCs after a user enters their phone number into the app. The code itself for opening the Lock UI is as …

---

## [Auth0.swift, facebook login, 'Sorry, something went wrong'](https://community.auth0.com/t/auth0-swift-facebook-login-sorry-something-went-wrong/9299)

<div class="topic-metadata">

**Author:** [@sean.lintern88](https://community.auth0.com/u/sean.lintern88)\
**Replies:** 2\
**Last updated:** [February 7, 2018, 7:01pm UTC](https://community.auth0.com/t/auth0-swift-facebook-login-sorry-something-went-wrong/9299 "2018-02-07T19:01:56Z")

</div>

Attempting to Facebook login via the webAuth(), just making sure this is a current facebook issue (seems unlikely?) Auth0.webAuth().connection(“facebook”).connectionScope(AuthorizationCoordinator.auth0DBConnection).start…

---

## [Integrating Auth0 API for iOS Swift - without using Cocoa Pods or Carthage](https://community.auth0.com/t/integrating-auth0-api-for-ios-swift-without-using-cocoa-pods-or-carthage/9405)

<div class="topic-metadata">

**Author:** [@sav](https://community.auth0.com/u/sav)\
**Replies:** 1\
**Last updated:** [December 17, 2018, 3:14pm UTC](https://community.auth0.com/t/integrating-auth0-api-for-ios-swift-without-using-cocoa-pods-or-carthage/9405 "2018-12-17T15:14:57Z")

</div>

Is it possible to integrate the Auth0 API for iOS Swift - without using Cocoa Pods or Carthage. i.e doing it the ‘old fashioned’ way by linking libraries etc Other APIs we use limit our ability to use Cocoa Pods or Car…

---

## [Id\_token retrieved in RS256 instead of HS256 (Auth0, Swift)](https://community.auth0.com/t/id-token-retrieved-in-rs256-instead-of-hs256-auth0-swift/8652)

<div class="topic-metadata">

**Author:** [@fivebyfiveyeah](https://community.auth0.com/u/fivebyfiveyeah)\
**Replies:** 1\
**Last updated:** [November 7, 2017, 9:18pm UTC](https://community.auth0.com/t/id-token-retrieved-in-rs256-instead-of-hs256-auth0-swift/8652 "2017-11-07T21:18:39Z")

</div>

The main native client I’m using is set to receive HS256 tokens. However, when I log in, these get sent out as RS256 and I’m getting an unauthorised error whenever I call the API I want to get access to. I’ve tried acce…

---

## [Vapor (Swift) resources?](https://community.auth0.com/t/vapor-swift-resources/8646)

<div class="topic-metadata">

**Author:** [@bballentine](https://community.auth0.com/u/bballentine)\
**Replies:** 2\
**Last updated:** [November 2, 2017, 3:34am UTC](https://community.auth0.com/t/vapor-swift-resources/8646 "2017-11-02T03:34:19Z")

</div>

Has anyone tried using Auth0 with Vapor 2 (Swift) or know of any useful resources? I have an API built with Vapor 2.0 and would love to implement JTW authentication, but I haven’t found any resources for server-side Swif…

---

## [iOS Swift SDK clearSession() not calling completion block sometimes](https://community.auth0.com/t/ios-swift-sdk-clearsession-not-calling-completion-block-sometimes/8583)

<div class="topic-metadata">

**Author:** [@yuichi](https://community.auth0.com/u/yuichi)\
**Replies:** 0\
**Last updated:** [October 25, 2017, 11:26pm UTC](https://community.auth0.com/t/ios-swift-sdk-clearsession-not-calling-completion-block-sometimes/8583 "2017-10-25T23:26:28Z")

</div>

I am calling Auth0.webAuth().clearSession() to clear saved credential from browser. It seems this method launches SafariViewController in the back. If you look really closely, you can see a transparent view presentin…

---

## [Swift Compiler Warning](https://community.auth0.com/t/swift-compiler-warning/8324)

<div class="topic-metadata">

**Author:** [@jchirinos](https://community.auth0.com/u/jchirinos)\
**Replies:** 3\
**Last updated:** [September 29, 2017, 5:00pm UTC](https://community.auth0.com/t/swift-compiler-warning/8324 "2017-09-29T17:00:23Z")

</div>

I am getting these warnings a couple of months ago, Ive try different versions of auth0 and lock for mobile(currently using: auth0: 2.4 and Lock: 1.8), and it keeps happening no matter what I do, funny thing is that if I…

---

## [When auth0 and lock for ios is going to be compatible with Swift 4?](https://community.auth0.com/t/when-auth0-and-lock-for-ios-is-going-to-be-compatible-with-swift-4/8340)

<div class="topic-metadata">

**Author:** [@jchirinos](https://community.auth0.com/u/jchirinos)\
**Replies:** 0\
**Last updated:** [September 29, 2017, 5:28am UTC](https://community.auth0.com/t/when-auth0-and-lock-for-ios-is-going-to-be-compatible-with-swift-4/8340 "2017-09-29T05:28:17Z")

</div>

Hey there, when moving my project to swift 3 to swift 4(also moving the frameworks of Auth0 and Lock) there is a lot of warnings and errors directly in the frameworks, my question is.. when is it going to be available th…

---

## [Lock - iOS (Swift) offline crash](https://community.auth0.com/t/lock-ios-swift-offline-crash/8133)

<div class="topic-metadata">

**Author:** [@seriba607](https://community.auth0.com/u/seriba607)\
**Replies:** 2\
**Last updated:** [September 11, 2017, 3:12pm UTC](https://community.auth0.com/t/lock-ios-swift-offline-crash/8133 "2017-09-11T15:12:48Z")

</div>

Hello I use Lock in both my iOS and Android apps for auth and things are okay in online mode. But when i disable my network connection and run the app: Android =\> When the app is run in offline mode, a “retry page” is…

---

## [iOS Lock V2: Refresh token](https://community.auth0.com/t/ios-lock-v2-refresh-token/8122)

<div class="topic-metadata">

**Author:** [@ankit1](https://community.auth0.com/u/ankit1)\
**Replies:** 1\
**Last updated:** [September 9, 2017, 3:55am UTC](https://community.auth0.com/t/ios-lock-v2-refresh-token/8122 "2017-09-09T03:55:51Z")

</div>

Hi, How to refresh token in auth0 lock v2. I tried to use the delegation api like this Auth0 .authentication(clientId: "clientID", domain: "domain") .delegation(withParameters: …

---

## [Swift 3 : canOpenURL: failed for URL:](https://community.auth0.com/t/swift-3-canopenurl-failed-for-url/7786)

<div class="topic-metadata">

**Author:** [@mathew1](https://community.auth0.com/u/mathew1)\
**Replies:** 3\
**Last updated:** [September 5, 2017, 5:05am UTC](https://community.auth0.com/t/swift-3-canopenurl-failed-for-url/7786 "2017-09-05T05:05:19Z")

</div>

Hi All, I’m trying to implement Auth0 in my iOS Swift app. I’m following the steps at: GitHub - auth0/Lock.swift: A Swift & iOS framework to authenticate using Auth0 and with a Native Look & Feel · GitHub and Lock.swif…

---

## [Username-Password Log in with Lock does not work](https://community.auth0.com/t/username-password-log-in-with-lock-does-not-work/8070)

<div class="topic-metadata">

**Author:** [@julian.manke91](https://community.auth0.com/u/julian.manke91)\
**Replies:** 0\
**Last updated:** [September 3, 2017, 7:29am UTC](https://community.auth0.com/t/username-password-log-in-with-lock-does-not-work/8070 "2017-09-03T07:29:58Z")

</div>

Note: The related question http://community.auth0.com/questions/1290/lock-widget-doesnt-properly-sign-up-a-user-were-so did not solve my issue. I’ve set up my Swift App with the Auth0 Web Login and everything works fi…

---

## [iOS Auth0 v2 refresh idToken](https://community.auth0.com/t/ios-auth0-v2-refresh-idtoken/6792)

<div class="topic-metadata">

**Author:** [@phramealpha](https://community.auth0.com/u/phramealpha)\
**Replies:** 2\
**Last updated:** [August 17, 2017, 8:59pm UTC](https://community.auth0.com/t/ios-auth0-v2-refresh-idtoken/6792 "2017-08-17T20:59:46Z")

</div>

I have a question regarding Auth0 v2 for iOS, how to renew the idToken? I am using renew(withRefreshToken refreshToken: String, scope: String?) method with refreshToken, but it’s only returning new accessToken, and I ne…

---

## [iOS CredentialsManager not retrieving with non-OIDC](https://community.auth0.com/t/ios-credentialsmanager-not-retrieving-with-non-oidc/7611)

<div class="topic-metadata">

**Author:** [@david.yee](https://community.auth0.com/u/david.yee)\
**Replies:** 2\
**Last updated:** [July 21, 2017, 5:28pm UTC](https://community.auth0.com/t/ios-credentialsmanager-not-retrieving-with-non-oidc/7611 "2017-07-21T17:28:02Z")

</div>

I am using the Lock.swift (v2.3.1) and Auth0.Swift (v1.7.1) SDKs for iOS 9+. In the documentation for Auth0.Swift, it suggests that the class CredentialsManager can be used to store the Credentials object and retrieve it…

---

## ["unacceptable content-type: text/html" error response for all changePassword requests using Lock of iOS in swift](https://community.auth0.com/t/unacceptable-content-type-text-html-error-response-for-all-changepassword-requests-using-lock-of-ios-in-swift/7339)

<div class="topic-metadata">

**Author:** [@TipYourself\_Mike](https://community.auth0.com/u/TipYourself_Mike)\
**Replies:** 1\
**Last updated:** [July 7, 2017, 7:36pm UTC](https://community.auth0.com/t/unacceptable-content-type-text-html-error-response-for-all-changepassword-requests-using-lock-of-ios-in-swift/7339 "2017-07-07T19:36:57Z")

</div>

I’m getting back an “unacceptable content-type: text/html” error for all change password requests regardless of whether or not they are successful. We’re using Lock for iOS in swift3. Our code hasn’t change recently, bu…

[Next page](https://community.auth0.com/tag/swift/375.md?match_all_tags=true&page=1&tags%5B%5D=swift)
