π A self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more!
Vue awesomedashboarddockerhomelabhomepagemitnodejsorganizationproductivitypwaself-hostedstartpagevue
π Keep bearer token fresh
Alicia Sykes5d01e1c16c74
diff --git a/src/utils/auth/OidcAuth.js b/src/utils/auth/OidcAuth.jsindex 88fa0d0f..87e92fef 100644--- a/src/utils/auth/OidcAuth.js+++ b/src/utils/auth/OidcAuth.js@@ -72,6 +72,10 @@ class OidcAuth {this.userManager.events.addUserSignedOut(() => {statusMsg('OIDC', 'User signed out at provider');});+ // Mirror token renewals into localStorage so Bearer attachment stays fresh+ this.userManager.events.addUserLoaded((user) => {+ if (user?.id_token) localStorage.setItem(localStorageKeys.ID_TOKEN, user.id_token);+ });}async login() {