Update signinArgs to accept a function or an object
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.
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.
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.