Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logged in #4

Open
carloschneider opened this issue Aug 5, 2014 · 1 comment
Open

Logged in #4

carloschneider opened this issue Aug 5, 2014 · 1 comment

Comments

@carloschneider
Copy link

Hello!
It's possible to check if user is logged in?

@christiansmith
Copy link
Owner

Yes. It's a bit awkward but you can look for the oauthToken property on GAPI.app. If it's not there, the user hasn't logged in. If it is, and GAPI.app.oauthToken.expires_at is still in the future, you can assume the access token is valid.

I'll keep this issue open for now as a reminded to add a simpler method to check the status (and set credentials from another source like localStorage).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants