diff --git a/Query stop b/Query stop new file mode 100644 index 0000000..b9545e2 --- /dev/null +++ b/Query stop @@ -0,0 +1,15 @@ +private fun showUserProfile(accessToken: String) { + var client = AuthenticationAPIClient(account) + + // With the access token, call `userInfo` and get the profile from Auth0. + client.userInfo(accessToken) + .start(object : Callback { + 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 + }