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

Update signinArgs to accept a function or an object #18

Open
justinobney opened this issue Jul 29, 2019 · 2 comments
Open

Update signinArgs to accept a function or an object #18

justinobney opened this issue Jul 29, 2019 · 2 comments

Comments

@justinobney
Copy link

In my particular use case, I want to store where the user is before a signin redirect so that I can send them back after successful authentication. with signinArgs as an object, I can only assign that at time of component creation. If it were to check if signinArgs were a function and then execute that function to get the args, I could query the location at that time.

@chriskolenko
Copy link
Contributor

I have a similar use case. I want to redirect the user back to the page they were on.

I was planning to use localStorage to store the current location. I was under the assumption signinArgs was for storing stuff in your token. FYI.. haven't done my research yet.

@thchia
Copy link
Owner

thchia commented Jul 31, 2019

This is an interesting use case - tbh I can’t remember if signinArgs was something we just added to this library, or whether it’s part of the OIDC spec. Let me explore further and see how we can take this forward.

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

3 participants