com.example.MyApp
and your Auth0 domain was
example.us.auth0.com
, then this value would be:apple-app-site-association
file.Podfile
:pod install
.Cartfile
:carthage bootstrap --use-xcframeworks
.plist
file named Auth0.plist
in your app bundle containing the Auth0 domain
and Client ID values.Auth0
module in the file where you want to present the login page. Then, present the Universal Login page in the action of your Login
button.clearSession()
method to clear the Universal Login session cookie.Credentials
instance you obtained after logging in includes an ID token. The ID token contains the profile information
associated with the logged-in user, such as their email and profile picture. You can use these details to
personalize the user interface of your app.The Auth0.swift SDK includes a utility for decoding JWTs like the ID token. Start by importing the JWTDecode
module in
the file where you want to access the user profile information. Then, use the decode(jwt:)
method to
decode the ID token and access the claims it contains.userInfo(withAccessToken:)
method.
Check the EXAMPLES to learn more.email
, picture
, or any other claim after you have logged in.