开发者

JavaScript Boolean to check if Google Auth token is still valid?

开发者 https://www.devze.com 2023-02-08 12:49 出处:网络
So if a user first vi开发者_开发问答sits the page and still hasnt authorized information share is there a way to detect if there is even a token or if the token is still valid using JavaScipt?Figure i

So if a user first vi开发者_开发问答sits the page and still hasnt authorized information share is there a way to detect if there is even a token or if the token is still valid using JavaScipt?


Figure it out:

google.accounts.user.checkLogin(scope)
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号