WebAuthProvider.logout(account) .withScheme("demo") .start(this, object: Callback<Void?, AuthenticationException> { override fun onSuccess(payload: Void?) { // The user has been logged out! } override fun onFailure(error: AuthenticationException) { // Something went wrong! } })
var client = AuthenticationAPIClient(account)// Use the received access token to call `userInfo` and get the profile from Auth0.client.userInfo(accessToken) .start(object : Callback<UserProfile, AuthenticationException> { override fun onFailure(exception: AuthenticationException) { // Something went wrong! } override fun onSuccess(profile: UserProfile) { // We have the user's profile! val email = profile.email val name = profile.name }})
⌘I
Assistant
Responses are generated using AI and may contain mistakes.