So if a user first visits 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)
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top