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?
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.
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.
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.
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