Logout user from OAuth2

588 views
Skip to first unread message

Sample Fox

unread,
Feb 11, 2022, 12:50:43 PM2/11/22
to Freesound API
Hi so I am making an iPhone app that uses the Freesound API. It's working great! One thing I need to do though is allow users to logout, so they can switch accounts if they want to. Is this supported in the API. Is there anything special I should do to invalidate my access/refresh tokens, before I let the user log in again?

Frederic Font Corbera

unread,
Feb 25, 2022, 6:39:43 AM2/25/22
to freeso...@googlegroups.com
Hi,

Sorry for the late reply, the message went to spam!
You should be able to use the "logout_and_authorize" endpoint instead of "authorize" (see here https://freesound.org/docs/api/authentication.html#step-1) in order to implement that functionality and allow users to switch account.

Cheers,

frederic

--
Frederic Font - ffont.github.io
Music Technology Group, UPF - mtg.upf.edu
Freesound - freesound.org



On Fri, 11 Feb 2022 at 18:50, Sample Fox <sonick...@gmail.com> wrote:
Hi so I am making an iPhone app that uses the Freesound API. It's working great! One thing I need to do though is allow users to logout, so they can switch accounts if they want to. Is this supported in the API. Is there anything special I should do to invalidate my access/refresh tokens, before I let the user log in again?

--

---
You received this message because you are subscribed to the Google Groups "Freesound API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to freesound-ap...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/freesound-api/8f2e9589-47c8-4cac-852b-3c6231cca115n%40googlegroups.com.
Reply all
Reply to author
Forward
Message has been deleted
0 new messages