SCHEME
placeholder can be https
or some other
custom scheme. https
schemes require enabling Android App Links.On iOS 17.4+ and macOS 14.4+ it is possible to use Universal Links (https
scheme) as
callback and logout URLs. When enabled, the SDK will fall back to using a custom URL scheme on older iOS
/ macOS versions –your app’s bundle identifier. This feature requires Xcode 15.3+ and a paid Apple
Developer account.com.example.MyApp
and your Auth0 domain were
example.us.auth0.com
, then this value would be:intent-filter
, which captures the authentication callback URL. You must set the Auth0 tenant domain
and the callback URL scheme.The sample uses the following placeholders:auth0Domain
: The domain of your Auth0 tenant. Generally, you find this in the Auth0 Dashboard
under your Application Settings in the Domain field. If you are using a custom domain, you
should set this to the value of your custom domain instead.auth0Scheme
: The scheme to use. Can be a custom scheme, or https if you want to use Android App Links.
You can read more about setting this value in the Auth0.Android SDK README.intent-filter
for your activity because you defined
the manifest placeholders with your Auth0 Domain and Scheme values. The library handles
the redirection for you.apple-app-site-association
file.open ios/Runner.xcworkspace
(or
open macos/Runner.xcworkspace
for macOS). Go to the Signing and Capabilities tab of the Runner target settings, and press the +
Capability button. Then select Associated Domains.Auth0
class. Redirect your users to
the Auth0 Universal Login page using webAuthentication().login()
. This is a Future
and
must be awaited for you to retrieve the user’s tokens.Android: if you are using a custom scheme, pass this scheme to the login method so that the SDK can route
to the login page and back again correctly:webAuthentication().login()
and logs the user into your
app. Verify that you are redirected to Auth0 for authentication and then back to your app.Verify that you can get access to the tokens on the result of calling login
.webAuthentication().logout()
. Read
more about logging out of Auth0.Android: if you are using a custom scheme, pass this scheme to the logout method so that the SDK can route
back to your app correctly:webAuthentication().logout()
and logs the user out of
your app. When you select it, verify that your Flutter app redirects you to the logout endpoint and back
again. You should not be logged in to your app.webAuthentication().login()
. The returned object from the login step contains a user
property with all the user profile properties, which populates by decoding the ID token.user
property on the result. Verify the current user’s profile
information, such as email
or name
.