From d795da28d1642fcf7ca146da1f433adb24134dd4 Mon Sep 17 00:00:00 2001 From: ExalayanMari <208263629+ExalayanMari@users.noreply.github.com> Date: Fri, 23 May 2025 23:24:06 -1000 Subject: [PATCH] Create Query stop --- Query stop | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Query stop 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 + }