Native application

Hi all, following the Documentation of Auth0 native app, I have created a native Applications inside Auth0 platform and downloaded the example files for Ios device from platform. I have also configured domain and client id inside the app and callback url, logout url on application setting, as per guide.

Unfortunately, when I try to login, after the login process, the app shows the login page again and no info is printed on xcode console.

I have checked inside Auth0 Logs and I realized that login is successfully done but the app shows always the login page.

I realized that app doesn’t enter on switch case inside Home View Controller.swift

Does anyone have an idea to how to solve this problem?

Thanks

Hey there Antonio!

Could you share here a bit more info so we can investigate that?

  • What iOS article are you referring to?
  • Can you share the exact piece of code that is not triggered?
  • Also sharing a screenshot of the results in the console will be perfect

Thank you a lot!

Hi Konrad,

I followed this article Auth0 iOS / macOS SDK Quickstarts: Login in order to implement login process.

I have added some print in order to debug the code, but it seems that app does not enter on switch statement

In attached screenshot of debug and code of controller with home screen that I see after the logIn process. If you want, I can share the project in pvt.

Thanks in advance

BR

HomeViewController.swift.txt (3.8 KB)

Let me look into that and get back to you soon!

Hey there @antonio.zaccardi!

Terribly sorry for the delay in response! I got trapped in the huge number of incoming questions and simply forgot about that one. Never mind getting back to the core issue.

In the meantime, if you haven’t got past your struggle we figured out a process to handle that most effectively which is simply by raising the GitHub issue in this situation in this repo:

https://github.com/auth0-samples/auth0-ios-swift-sample/tree/master/00-Login

and providing as much context around your struggle as possible which is simply copy pasting what you provided here. The key is that you will be able to work with tool maintainers directly which is most effective. Here’s more on that:

http://community.auth0.com/t/i-follow-your-docs-quickstart-and-i-have-a-problem-but-it-has-a-github-repo-what-do-i-do-now/39519/3

This topic was automatically closed after 4 days. New replies are no longer allowed.