Example on using signoutCallbackComponent
jeinz11 opened this issue · 4 comments
Hi max is there a working example on using signoutCallbackComponent im using it just like the callback component but no luck its not working thanks
when im using this
import SignoutCallbackComponent from "redux-oidc";
the error is you must provide a user manager even though i passed a usermanager object
but when i use this
import { SignoutCallbackComponent } from "redux-oidc";
i get this:
React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.
what is the correct way for using this signoutCallbackComponent
This is a bug. Thanks for the report. I will investigate the other issues posted recently and release the next update with the fix as soon as all the other issues are resolved and potential bug fixes have been made.
You just need to export the SignoutCallbackComponent
by adding the following line to index.js
export const SignoutCallbackComponent = require('./SignoutCallbackComponent').default;
Sorry for the late reply, the SignoutCallbackComponent
is now exported in version 3.1.1 and available like this:
import { SignoutCallbackComponent } from 'redux-oidc'
.