nextauthz 1.1.2 → 1.1.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/dist/index.js CHANGED
@@ -1765,8 +1765,8 @@ module.exports = __toCommonJS(index_exports);
1765
1765
  // src/AuthProvider.tsx
1766
1766
  var import_react = __toESM(require_react());
1767
1767
  var import_jsx_runtime = __toESM(require_jsx_runtime());
1768
+ var AuthContext = (0, import_react.createContext)(null);
1768
1769
  function createAuthContext() {
1769
- const AuthContext = (0, import_react.createContext)(null);
1770
1770
  const AuthProvider = ({ children }) => {
1771
1771
  const [user, setUser] = (0, import_react.useState)(null);
1772
1772
  const [loading, setLoading] = (0, import_react.useState)(false);
package/dist/index.mjs CHANGED
@@ -1751,8 +1751,8 @@ var require_jsx_runtime = __commonJS({
1751
1751
  // src/AuthProvider.tsx
1752
1752
  var import_react = __toESM(require_react());
1753
1753
  var import_jsx_runtime = __toESM(require_jsx_runtime());
1754
+ var AuthContext = (0, import_react.createContext)(null);
1754
1755
  function createAuthContext() {
1755
- const AuthContext = (0, import_react.createContext)(null);
1756
1756
  const AuthProvider = ({ children }) => {
1757
1757
  const [user, setUser] = (0, import_react.useState)(null);
1758
1758
  const [loading, setLoading] = (0, import_react.useState)(false);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nextauthz",
3
- "version": "1.1.2",
3
+ "version": "1.1.3",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -123,9 +123,9 @@ export type AuthContextType<UserType> = {
123
123
  error: Error | null
124
124
  }
125
125
 
126
- export function createAuthContext<UserType>() {
127
- const AuthContext = createContext<AuthContextType<UserType> | null>(null)
126
+ const AuthContext = createContext<any | null>(null)
128
127
 
128
+ export function createAuthContext<UserType>() {
129
129
  const AuthProvider = ({ children }: { children: ReactNode }) => {
130
130
  const [user, setUser] = useState<UserType | null>(null)
131
131
  const [loading, setLoading] = useState(false)