nextauthz 1.3.12 → 1.3.13
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/index.js +0 -2
- package/dist/index.mjs +0 -2
- package/package.json +1 -1
- package/src/AuthProvider.tsx +0 -5
package/dist/index.js
CHANGED
|
@@ -80,8 +80,6 @@ function createAuthContext(option) {
|
|
|
80
80
|
(0, import_react.useEffect)(() => {
|
|
81
81
|
const storedUser = manager.getSingleToken("user");
|
|
82
82
|
const token = manager.getSingleToken(tokenKey);
|
|
83
|
-
const expired = manager.isExpired(token);
|
|
84
|
-
console.log("is expired", expired);
|
|
85
83
|
if (token && !manager.isExpired(token)) {
|
|
86
84
|
try {
|
|
87
85
|
setAuth(true);
|
package/dist/index.mjs
CHANGED
|
@@ -53,8 +53,6 @@ function createAuthContext(option) {
|
|
|
53
53
|
useEffect(() => {
|
|
54
54
|
const storedUser = manager.getSingleToken("user");
|
|
55
55
|
const token = manager.getSingleToken(tokenKey);
|
|
56
|
-
const expired = manager.isExpired(token);
|
|
57
|
-
console.log("is expired", expired);
|
|
58
56
|
if (token && !manager.isExpired(token)) {
|
|
59
57
|
try {
|
|
60
58
|
setAuth(true);
|
package/package.json
CHANGED
package/src/AuthProvider.tsx
CHANGED
|
@@ -56,11 +56,6 @@ export function createAuthContext<UserType extends User = User>(option?: {
|
|
|
56
56
|
const storedUser = manager.getSingleToken('user')
|
|
57
57
|
const token = manager.getSingleToken(tokenKey)
|
|
58
58
|
|
|
59
|
-
const expired = manager.isExpired(token as any);
|
|
60
|
-
|
|
61
|
-
console.log('is expired', expired);
|
|
62
|
-
|
|
63
|
-
|
|
64
59
|
if (token && !manager.isExpired(token)) {
|
|
65
60
|
try {
|
|
66
61
|
setAuth(true)
|