@supabase/auth-js 2.106.2-beta.2 → 2.106.2-canary.0

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": "@supabase/auth-js",
3
- "version": "2.106.2-beta.2",
3
+ "version": "2.106.2-canary.0",
4
4
  "private": false,
5
5
  "description": "Official SDK for Supabase Auth",
6
6
  "keywords": [
@@ -29,18 +29,7 @@
29
29
  "tslib": "2.8.1"
30
30
  },
31
31
  "devDependencies": {
32
- "@faker-js/faker": "^9.9.0",
33
- "@types/jest": "30.0.0",
34
- "@types/jsonwebtoken": "^8.5.8",
35
- "@types/node": "20.19.9",
36
- "jest": "30.4.2",
37
- "jest-environment-jsdom": "30.4.1",
38
- "jest-mock-server": "^0.1.0",
39
- "jsonwebtoken": "^9.0.0",
40
- "prettier": "^3.6.2",
41
- "ts-jest": "^29.4.9",
42
- "typedoc": "^0.27.9",
43
- "typescript": "~5.8.3"
32
+ "prettier": "^2.8.8"
44
33
  },
45
34
  "engines": {
46
35
  "node": ">=20.0.0"
package/src/lib/fetch.ts CHANGED
@@ -255,7 +255,7 @@ export function _sessionResponse(data: GoTrueSessionData): AuthResponse {
255
255
 
256
256
  // Some /verify responses (e.g. secure email_change first-confirmation) return
257
257
  // only `{ msg, code }` with no user and no session. Treat those as null user.
258
- const user: User | null = data.user ?? null
258
+ const user: User | null = data.user ?? (typeof data?.id === 'string' ? (data as User) : null)
259
259
  return { data: { session, user }, error: null }
260
260
  }
261
261
 
@@ -4,4 +4,4 @@
4
4
  // - Debugging and support (identifying which version is running)
5
5
  // - Telemetry and logging (version reporting in errors/analytics)
6
6
  // - Ensuring build artifacts match the published package version
7
- export const version = '2.106.2-beta.2'
7
+ export const version = '2.106.2-canary.0'