@oauth42/next 0.2.5 → 0.2.6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oauth42/next",
3
- "version": "0.2.5",
3
+ "version": "0.2.6",
4
4
  "description": "Official OAuth42 SDK for Next.js applications",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -20,6 +20,11 @@
20
20
  "types": "./dist/server/index.d.ts",
21
21
  "import": "./dist/server/index.mjs",
22
22
  "require": "./dist/server/index.js"
23
+ },
24
+ "./middleware": {
25
+ "types": "./dist/middleware/index.d.ts",
26
+ "import": "./dist/middleware/index.mjs",
27
+ "require": "./dist/middleware/index.js"
23
28
  }
24
29
  },
25
30
  "scripts": {
@@ -5,6 +5,7 @@ declare module "next-auth" {
5
5
  interface Session {
6
6
  accessToken?: string
7
7
  idToken?: string
8
+ error?: string // Token refresh error (e.g., "RefreshAccessTokenError")
8
9
  user?: {
9
10
  email?: string | null
10
11
  name?: string | null
@@ -24,5 +25,6 @@ declare module "next-auth/jwt" {
24
25
  email?: string
25
26
  username?: string
26
27
  emailVerified?: boolean
28
+ error?: string // Token refresh error
27
29
  }
28
30
  }