I successfully implemented login with google with the example codes provided by google.
However, I'm not sure of how I should use this 'backend-server authentication' thingy.
which is provided in : https://developers.google.com/identity/sign-in/web/backend-auth
I'm developing a website that requires google login and google drive, as the program flows:
Before I implement the google drive API, I think I need to handle with the google login system, but I'm not sure how to do it.
Currently, my website goes as 1. User logs in / 2. User logs out / 3. Then the web does not ask the google account, just logs the previous user inside.
Does 'backend-server authentication' gives an answer to my question below?
I understand that it is the same issue as this : How to Logout of an Application Where I Used OAuth2 To Login With Google?. I understood the meaning of the answer, but I cannot find a way to implement to just "log out from the app, not google."
So, to wrap it up, my question will be 2;
Sign out on your computerOpen Gmail. In the top right, click your photo. Click Sign out.
On your device, go to a browser where you're signed in, like Chrome. Go to myaccount.google.com. In the top right, select your profile picture or initial. Select Sign out or Sign out of all accounts.
To sign out, tap your profile image on the top right. Sign out. (If you see an option to "Sign in" instead of your profile image, you're already signed out.) To remove an account, make sure you're signed out.
From this section of the documentation:
You can enable users to sign out of your app without signing out of Google by adding a sign-out button or link to your site. To create a sign-out link, attach a function that calls the GoogleAuth.signOut() method to the link's
onclick
event.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With