-
Notifications
You must be signed in to change notification settings - Fork 107
9. FAQ
Maximilian Mantz edited this page Jan 4, 2017
·
5 revisions
You will have to pass in the current URL to the data passed to the OpenID Provider like this:
userManager.signinRedirect({
data: {
redirectUrl: window.location.href
}
});
This package uses a middleware to handle OIDC interactions. In case you aren't using react-router (or any other redux library which dispatches an action on load) you have to jumpstart the middleware by dispatching an action like this:
`store.dispatch({ type: 'INIT_MIDDLEWARE' });'