Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get creation date of gmail account in Google OAuth 2

I am working on Google OAuth 2.0, to get information about the users logged in through Google OAuth 2.0. There is a variety of scopes available like

For getting the user basic profile there is OAuth scope available called profile which is internally converts to a URL https://www.googleapis.com/auth/plus.profile and for knowing the logged in user's email id there is a Oauth scope called email which results in URL https://www.googleapis.com/auth/userinfo.email.

Now my question is: How to get the creation date of the gmail account of an user?

Is there any OAuth scope available for getting how old the gmail account of logged in user?

like image 440
Jagadeesh Avatar asked Oct 25 '14 17:10

Jagadeesh


People also ask

How can I get OAuth email from Google?

If this scope is included while you generate the refresh token, you should be able to get the email address of the authenticating user by making the following request: https://www.googleapis.com/oauth2/v2/userinfo?access_token="YOUR_ACCESS_TOKEN". You can try this out in the API explorer.

How does OAuth Gmail work?

OAuth 2.0 allows users to share specific data with an application while keeping their usernames, passwords, and other information private. For example, an application can use OAuth 2.0 to obtain permission from users to store files in their Google Drives. This OAuth 2.0 flow is called the implicit grant flow.


1 Answers

According to Google API People resource , It doesn't have a property to check the creation date. It might be a security risk as when user forget the password, Google asks for the registration date of account.

like image 117
warezthief Avatar answered Oct 23 '22 09:10

warezthief