@proveanything/smartlinks-auth-ui 0.1.19 → 0.1.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/context/AuthContext.d.ts.map +1 -1
- package/dist/index.esm.js +2 -0
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -11326,6 +11326,8 @@ const AuthProvider = ({ children, proxyMode = false, accountCacheTTL = 5 * 60 *
|
|
|
11326
11326
|
setUser(storedUser);
|
|
11327
11327
|
setAccountData(storedAccountData);
|
|
11328
11328
|
console.log('[AuthContext] Session restored successfully');
|
|
11329
|
+
// Notify subscribers that session was restored (critical for app to know we're logged in)
|
|
11330
|
+
notifyAuthStateChange('LOGIN', storedUser, storedToken.token, storedAccountData || null);
|
|
11329
11331
|
}
|
|
11330
11332
|
}
|
|
11331
11333
|
catch (err) {
|