Question

I'm working on a project where I need to include Google authentication, but my superior would like to have it in a different way, when the page loads, it checks if the user is Logged In into Google, and if it is then gets the users email address.

My question is that is it possible to send an authorization request on page load to Google, and authenticate the user without the user have to click on any button?

Was it helpful?

Solution

No.Even if user is logged in Google in other tab for example to be able to access user email address you must ask user for permissions. After user confirms this then you will receive access token that you can use to make request to google and access users email adress and other data.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top