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

我们两清 提交于 2020-12-25 09:40:30

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/26564953/how-to-get-creation-date-of-gmail-account-in-google-oauth-2

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!