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

googleApi: determine authenticated without going through authentication process when not authenticated #24

Closed
matthewkooshad opened this issue Sep 24, 2018 · 3 comments

Comments

@matthewkooshad
Copy link

how can i get if the app user has authenticated with google without sending the user to the google authentication page (choose a google account page)? thanks!

@Clancey
Copy link
Owner

Clancey commented Sep 24, 2018

So if everything works right you shouldn't need to do anything. Test on a device. Login, then call login again. It will not present the UI. If tokens are cached and are valid, the UI will not be presented until the credentials are expired, and for some reason cannot be refreshed. For most providers this means you never show a login again, unless they log out.

@Clancey Clancey closed this as completed Sep 24, 2018
@matthewkooshad
Copy link
Author

@Clancey
"Login, then call login again" -- before the initial "Login" you've said to do, how can i check if the user has Logged in? i only want to send the user to the Login page to Login if they are not Logged in.

@matthewkooshad
Copy link
Author

i'll point out the clarity response above to this unsolved question in a new issue since this one was closed. i looked into to see if possible about reopening (isaacs/github#583).

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