Google oAuth - how to remove cookie after login from google oAuth

I have an app with google oAuth, this works fine.

I can log in and access my site.

My question is: when I exit (my exit) from my application, I delete all sessions, but the authenticated cookie (made by google oAuth) is not deleted.

So, right now, when I do logout, and log in using google oAuth, it will log in directly, without asking for an email and password for authentication in google account.

Anyone who has an idea of ​​what I need to do to delete this cookie and force the user to log back in using google oAuth after logging out once.

+6
source share
2 answers

My implementation gives me an idea of ​​this. if you exit the application from which you use Gmail to log in, you will not be able to exit another application that runs in the browser, for example, FB.

I mean....

If I sign up for my application using a Gmail account. and in the same browser if I log in to my Gmail (mail) account.

In this case, when I make Logout from my application and update Gmail (mail), it is still in the system, because Gmail is based on Token.

0
source

Perhaps log out using this link.

https://accounts.google.com/Logout?continue=http://google.com 
+8
source

Source: https://habr.com/ru/post/902733/


All Articles