-
Notifications
You must be signed in to change notification settings - Fork 53
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
feat: Replace config.state with callback #209
base: main
Are you sure you want to change the base?
feat: Replace config.state with callback #209
Conversation
I've quickly realized that I shouldn't remove |
Hey, @nrosenwald! Thanks for contributing! At first glance, the code looks alright, but I'd like to know more about the use-case for it. Could you describe the scenario where this improves developer experience, with the context around the library as well? Thanks! |
Hi @sebastianvitterso! Of course. There's two main reasons.
|
Cool! Thanks for the PR! |
Thanks for the PR @nrosenwald! A few things:
|
What does this pull request change?
This PR adds
TAuthConfig.stateFn
, a callback for generating a random state String. The appropriate documentation is also updated.Why is this pull request needed?
This allows for applications to generate and use states without having to manually generate a state every time
IAuthContext.logIn
is called. This also enables states to be used in the initial log in whenTAuthConfig.autoLogin
is true.Issues related to this change
None