react-oidc icon indicating copy to clipboard operation
react-oidc copied to clipboard

Update signinArgs to accept a function or an object

Open justinobney opened this issue 6 years ago • 2 comments

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.

justinobney avatar Jul 29 '19 14:07 justinobney

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.

chriskolenko avatar Jul 30 '19 23:07 chriskolenko

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.

thchia avatar Jul 31 '19 23:07 thchia