I have a question about the OAuth2.0 process. I would like to get something like the Stack Log with google account function.
I am using the PHP library from Google.
I normally get update token and access token.
So far, so good, my question is: when a user logs out of my website and presses a button again, how should I know who should extract the necessary update token from the database?
I was thinking about storing email in a cookie, but StackOverflow doesn't seem to do it, since I cleared my cookies, but Stack keeps linking me when I click the button without displaying the google "Scope" page.
Am I missing something? Is there an API that allows you to receive user email without a token? Maybe RefreshToken should only be used with Mobile APP, where do you know the user?
What I want to achieve is relatively simple, the user clicks on the entry, the first time I have to approve the application. After its completion, I would like to automatically connect the user when I click the login button.
Thanks for any info on this.
source share