Skip to content

Commit

Permalink
feat(PR): update yarn
Browse files Browse the repository at this point in the history
  • Loading branch information
lailabjil committed Jan 11, 2024
1 parent aa2b090 commit f73309f
Show file tree
Hide file tree
Showing 2 changed files with 2,099 additions and 1,842 deletions.
6 changes: 3 additions & 3 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@ const App = () => {

setAuth(auth);
//keeps user token up to date after session renewal
auth.userManager.events.addUserLoaded(() => {
auth.userManager?.events.addUserLoaded(() => {
auth.userManager.getUser().then(user => {
setUserToken(user?.access_token || "");
});
});

auth.userManager.events.addSilentRenewError(() => {
auth.userManager?.events.addSilentRenewError(() => {
if (navigator.onLine) {
auth.userManager
.signoutRedirect({
Expand All @@ -63,7 +63,7 @@ const App = () => {
}
});

auth.userManager.settings.userStore.getAllKeys().then(keys => {
auth.userManager?.settings.userStore.getAllKeys().then(keys => {
auth.userManager.settings.stateStore.getAllKeys().then(keysState => {
if (
window.location.search.includes("state") &&
Expand Down
Loading

0 comments on commit f73309f

Please sign in to comment.