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

Support for login_hint parameter #201

Open
OMGeeky opened this issue Apr 16, 2023 · 0 comments
Open

Support for login_hint parameter #201

OMGeeky opened this issue Apr 16, 2023 · 0 comments

Comments

@OMGeeky
Copy link
Contributor

OMGeeky commented Apr 16, 2023

I find myself in a position where I need to login the user on the same browser with a different channel, sometimes shortly after authenticating with one. If i let the user click the link to authenticate then it just immediately takes him to the redirect uri without the chance of selecting a different account/channel(youtube). I think this problem should be solvable by using the 'login_hint' parameter that does not seem to be available in this library.

This is the documentation for the parameter login_hint which says:

When your app knows which user it is trying to authenticate, it can provide this parameter as a hint to the authentication server. Passing this hint suppresses the account chooser and either pre-fills the email box on the sign-in form, or selects the proper session (if the user is using multiple sign-in), which can help you avoid problems that occur if your app logs in the wrong user account. The value can be either an email address or the sub string, which is equivalent to the user's Google ID.


I might try to poke around the code and implement this myself when I get the time for it, but I'm not too good at Rust yet so any help or guidance would be appreciated.
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

1 participant