react-oidc-context
react-oidc-context copied to clipboard
How to store token in the localStorage instead of sessionStorage?
The token is being stored in the sessionStorage. How can I tell the library to store it in the localStorage?
I've not tried it myself, but I'm pretty sure that's the userStore prop
const oidc: AuthProviderProps = {
authority: "http://localhost:5064",
userStore: new WebStorageStateStore({
store: localStorage
}),
Thanks, it works.