fixed bugs in auth for frontend
This commit is contained in:
@@ -54,11 +54,9 @@ export function getOidcConfig() {
|
|||||||
stateStore: storage,
|
stateStore: storage,
|
||||||
userStore: storage,
|
userStore: storage,
|
||||||
onSigninCallback: () => {
|
onSigninCallback: () => {
|
||||||
window.history.replaceState(
|
// Remove the OIDC response params so a reload doesn't try to process
|
||||||
{},
|
// the same callback twice and fail with a missing state entry.
|
||||||
document.title,
|
window.history.replaceState({}, document.title, window.location.pathname);
|
||||||
window.location.pathname + window.location.search,
|
|
||||||
);
|
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user