[英]How do I implement remember me functionality in Oauth 2.0 with refresh_token?
[英]How do I receive refresh_token with google Oauth in angular js while integrating Google Plus
我的代码如下所示。 它没有返回我刷新令牌
gapi.signin.render('signInButton',
{
'callback': $scope.signInCallback,
'clientid': '***',
'requestvisibleactions': 'http://schemas.google.com/AddActivity',
'scope': 'https://www.googleapis.com/auth/plus.login https://www.googleapis.com/auth/userinfo.email',
'cookiepolicy': 'single_host_origin',
'access_type': 'offline'
}
出于安全原因,在OAuth 2.0的implicit grant type
, refresh_token
不可用。 因此,您无法使用javascript获取refresh_token
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.