[GH-ISSUE #193] Logout function #131

Closed
opened 2026-02-27 19:26:14 +03:00 by kerem · 1 comment
Owner

Originally created by @djansen1987 on GitHub (May 15, 2020).
Original GitHub issue: https://github.com/jwilsson/spotify-web-api-php/issues/193

Hi, First many thanks for this module!

I was wondering if it was possible to create a logout function. Did some quick seacht and found this:

You want to simply logout from "spotify web api" then you should terminate your spotify session >>through clear authentication token like:

AuthenticationClient.clearCookies(getApplication());

It may be nothing but it might also be a quick win to the module.

link to forum: https://stackoverflow.com/questions/24408444/how-to-logout-user-from-spotify-after-authorization-and-web-api-call-is-over

Originally created by @djansen1987 on GitHub (May 15, 2020). Original GitHub issue: https://github.com/jwilsson/spotify-web-api-php/issues/193 Hi, First many thanks for this module! I was wondering if it was possible to create a logout function. Did some quick seacht and found this: >> You want to simply logout from "spotify web api" then you should terminate your spotify session >>through clear authentication token like: >> >>AuthenticationClient.clearCookies(getApplication()); It may be nothing but it might also be a quick win to the module. link to forum: [https://stackoverflow.com/questions/24408444/how-to-logout-user-from-spotify-after-authorization-and-web-api-call-is-over](https://stackoverflow.com/questions/24408444/how-to-logout-user-from-spotify-after-authorization-and-web-api-call-is-over)
kerem closed this issue 2026-02-27 19:26:14 +03:00
Author
Owner

@jwilsson commented on GitHub (May 16, 2020):

Hey!
Thanks for the suggestion!

Given the other answers in that thread, I don't think it's possible for this library to handle logouts. It would be up to each user of the library to do it.

<!-- gh-comment-id:629640064 --> @jwilsson commented on GitHub (May 16, 2020): Hey! Thanks for the suggestion! Given the other answers in that thread, I don't think it's possible for this library to handle logouts. It would be up to each user of the library to do it.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/spotify-web-api-php#131
No description provided.