Announcements
From 28th September 2026, Community private messages will no longer be available. If you have any private messages you'd like to keep, please save or copy them using these steps before this date. Thank you.

Help Wizard

Step 1

NEXT STEP

[Android] AuthorizationClient logout

[Android] AuthorizationClient logout

Hi,

I'm starting to use the Android SDK and I did the Authentification in Kotlin like this :

 

 

 

 

 

val request = getAuthenticationRequest(AuthorizationResponse.Type.TOKEN, showDialog)

AuthorizationClient.openLoginActivity(this, Constants.AUTH_TOKEN_REQUEST_CODE, request)

 

 

 

 

 

It's working, but now I would like to add a logout button on my app, but I didn't found how to clear the authentification. In the doc I saw a "clearCookie" function in AuthorizationClient, but I didn't found it. 

 

Is there an easy way to logout a user ?


Thanks in advance, 

 

Binomial 

Reply
0 Replies

Suggested posts

Let's introduce ourselves!

Hey there you,   Yeah, you! 😁   Welcome - we're glad you joined the Spotify Community!   While you here, let's have a fun game and get…

ModeratorStaff / Moderator/ 5 years ago  in Social & Random