Last Updated: Nov 11, 2024
Overview
Some documentation may specify that if an iOS native app is going to install Auth0 SDK, the callback URL should follow this format:
YOUR_BUNDLE_IDENTIFIER://YOUR_DOMAIN/ios/YOUR_BUNDLE_IDENTIFIER/callback
This article clarifies whether, for an existing custom schema like “myApp://”, the “myApp://YOUR_DOMAIN/ios/YOUR_BUNDLE_IDENTIFIER/callback” can be used instead to avoid the need to create new custom schemes.
Applies To
- Callback URL
- Custom Schemas
- Mobile App
Solution
It is possible to configure the callback URL in the scheme presented above from Auth0’s side, and there is no obligation to follow the pattern we have documented in our samples. Once the user is logged in, we will send the code back to the configured callback URL.
NOTE: Please test the callback URL before pushing it into production. If it does not work, it should be caused by a limitation of the iOS itself in associating the app to pick up the response when we send the answer to this callback URL.