nextauthz 1.3.19 → 1.3.21

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 CHANGED
@@ -111,6 +111,8 @@ function createAuthContext(option) {
111
111
  };
112
112
  const logout = () => {
113
113
  manager.clearTokens();
114
+ setAuth(false);
115
+ setAuthChecked(true);
114
116
  resetAuth();
115
117
  };
116
118
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
package/dist/index.mjs CHANGED
@@ -84,6 +84,8 @@ function createAuthContext(option) {
84
84
  };
85
85
  const logout = () => {
86
86
  manager.clearTokens();
87
+ setAuth(false);
88
+ setAuthChecked(true);
87
89
  resetAuth();
88
90
  };
89
91
  return /* @__PURE__ */ jsx(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nextauthz",
3
- "version": "1.3.19",
3
+ "version": "1.3.21",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -25,6 +25,6 @@
25
25
  "zustand": "^5.0.0"
26
26
  },
27
27
  "dependencies": {
28
- "react-token-manager": "^1.1.6"
28
+ "react-token-manager": "^1.1.7"
29
29
  }
30
30
  }
@@ -104,6 +104,8 @@ export function createAuthContext<UserType extends User = User>(option?: {
104
104
 
105
105
  const logout = () => {
106
106
  manager.clearTokens()
107
+ setAuth(false);
108
+ setAuthChecked(true); // mark that auth is now checked
107
109
  resetAuth()
108
110
  }
109
111