Federated Logout

Hi, how do I sign-out of my OAuth Provider after calling authClient.signOut() ? I know signOut deletes cookies and invalidates session in DB, but I want to logout of my provider.
2 Replies
Ben Stickley
Ben StickleyOP3mo ago
Kinderas.com
Implementing federated sign out when using next-auth in you Next.js...
When using federated auth, such a Google or a custom oAuth & OpenId Connect setup, a user will in some cases expect to be signed out from the original provider as well as your Next application. In this post I'll go into detail on how this can be achieved using next-auth v4.
Ben Stickley
Ben StickleyOP3mo ago
More related: https://github.com/better-auth/better-auth/issues/2544 This feature is not implemented yet.
GitHub
Implement end_session_endpoint for federated (RP-initiated) logou...
Is this suited for github? Yes, this is suited for github Is your feature request related to a problem? Please describe. Currently, signing out from an OIDC RP clears the local session, but not the...

Did you find this page helpful?