@riligar/auth-react 1.20.1 → 1.20.3
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/README.md +3 -3
- package/dist/index.esm.js +0 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +0 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# Auth React
|
|
2
2
|
|
|
3
3
|
<p align="center">
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
<a href="https://www.npmjs.com/package/@riligar/auth-react" target="_blank"><img src="https://img.shields.io/npm/v/@riligar/auth-react.svg" alt="npm version" /></a>
|
|
5
|
+
<a href="https://www.npmjs.com/package/@riligar/auth-react" target="_blank"><img src="https://img.shields.io/npm/dm/@riligar/auth-react.svg" alt="npm downloads" /></a>
|
|
6
|
+
<a href="https://www.npmjs.com/package/@riligar/auth-react" target="_blank"><img src="https://img.shields.io/npm/l/@riligar/auth-react.svg" alt="license" /></a>
|
|
7
7
|
</p>
|
|
8
8
|
|
|
9
9
|
Auth SDK for React with JWT and JWKS.
|
package/dist/index.esm.js
CHANGED
|
@@ -938,8 +938,6 @@ function AuthProvider({
|
|
|
938
938
|
});
|
|
939
939
|
// Dispara evento de logout para sincronizar entre abas
|
|
940
940
|
localStorage.setItem('auth:logout', Date.now());
|
|
941
|
-
// Recarrega para redirecionar - deixa o Protect/rotas decidirem para onde ir
|
|
942
|
-
window.location.reload();
|
|
943
941
|
};
|
|
944
942
|
window.addEventListener('storage', handleStorageChange);
|
|
945
943
|
window.addEventListener('auth:session-revoked', handleSessionRevoked);
|