首页 > 代码库 > google api , the problem of null refresh token
google api , the problem of null refresh token
http://stackoverflow.com/questions/10827920/google-oauth-refresh-token-is-not-being-received
The refresh_token
is only provided on the first authorization from the user. Subsequent authorizations, such as the kind you make while testing an OAuth2 integration, will not return the refresh_token
again. :)
- Go to your account security settings: https://www.google.com/settings/u/1/security.
- Click the edit button next to "Authorizing applications and sites".
- Then click "Revoke Access" next to your app.
- The next OAuth2 request you make will return a
refresh_token
.
Alternatively, you can add the query parameter approval_prompt=force
to the OAuth redirect (see Google‘s OAuth 2.0 for Web Server Applications page).
This will prompt the user to authorize the application again and will always return a refresh_token
.
google api , the problem of null refresh token
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。