@snokam/auth 2.2.0-alpha.11 → 2.2.0-alpha.12

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/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [2.2.0-alpha.12](https://github.com/snokam/components/compare/@snokam/auth@2.2.0-alpha.11...@snokam/auth@2.2.0-alpha.12) (2025-06-01)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * try to fix types ([eae6f94](https://github.com/snokam/components/commit/eae6f942c59dfa848d6c3b4dbf8141c2a25b3b45))
12
+
13
+
14
+
15
+
16
+
6
17
  # [2.2.0-alpha.11](https://github.com/snokam/components/compare/@snokam/auth@2.2.0-alpha.10...@snokam/auth@2.2.0-alpha.11) (2025-06-01)
7
18
 
8
19
 
@@ -1,5 +1,5 @@
1
1
  import { Auth } from "./utils/types";
2
- export declare function buildAuthMiddleware({ matcher, callbacks, protectAllRoutes, ...rest }?: Auth.Middleware.Props): Auth.Middleware;
2
+ export declare function buildAuthMiddleware({ matcher, callbacks, protectAllRoutes, ...rest }?: Auth.Middleware.Props): Auth.Middleware.Builder;
3
3
  declare const middleware: import("next-auth/middleware").NextMiddlewareWithAuth, config: {
4
4
  matcher: string[];
5
5
  };
@@ -1,5 +1,5 @@
1
1
  import { Session } from "next-auth";
2
- import { NextAuthMiddlewareOptions, NextMiddlewareWithAuth } from "next-auth/middleware";
2
+ import { NextAuthMiddlewareOptions } from "next-auth/middleware";
3
3
  import { ReactNode } from "react";
4
4
  export declare namespace Auth {
5
5
  interface Config {
@@ -23,13 +23,13 @@ export declare namespace Auth {
23
23
  showPageLoader?: boolean;
24
24
  }
25
25
  }
26
- interface Middleware {
27
- middleware: NextMiddlewareWithAuth;
28
- config?: {
29
- matcher: string[];
30
- };
31
- }
32
26
  namespace Middleware {
27
+ interface Builder {
28
+ middleware: import("next-auth/middleware").NextMiddlewareWithAuth;
29
+ config?: {
30
+ matcher: string[];
31
+ };
32
+ }
33
33
  interface Props extends Omit<NextAuthMiddlewareOptions, "pages" | "callbacks"> {
34
34
  matcher?: string[];
35
35
  callbacks?: NextAuthMiddlewareOptions["callbacks"];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@snokam/auth",
3
3
  "description": "Snøkam auth components",
4
- "version": "2.2.0-alpha.11",
4
+ "version": "2.2.0-alpha.12",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "files": [
@@ -67,5 +67,5 @@
67
67
  ]
68
68
  }
69
69
  },
70
- "gitHead": "94c1b90b788438eebe47e03ef4658df44d7c8a01"
70
+ "gitHead": "4ad340a6c49476f19bf0fcd4790446957c26e11b"
71
71
  }