@quatrain/auth-supabase 1.2.1 → 1.2.2
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": "@quatrain/auth-supabase",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.2",
|
|
4
4
|
"license": "AGPL-3.0-only",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"author": "Quatrain Développement SAS <developers@quatrain.com>",
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@quatrain/auth": "^1.2.1",
|
|
23
|
-
"@quatrain/backend": "^1.2.
|
|
23
|
+
"@quatrain/backend": "^1.2.5",
|
|
24
24
|
"@supabase/supabase-js": "^2.87.3",
|
|
25
25
|
"node-fetch-native": "^1.6.4"
|
|
26
26
|
},
|
|
@@ -225,7 +225,7 @@ describe('SupabaseAuthAdapter', () => {
|
|
|
225
225
|
json: jest.fn().mockResolvedValue(mockResponse),
|
|
226
226
|
}
|
|
227
227
|
|
|
228
|
-
;(nativeFetch.fetch as jest.Mock).mockResolvedValue(mockFetchResponse)
|
|
228
|
+
;(nativeFetch.fetch as unknown as jest.Mock).mockResolvedValue(mockFetchResponse)
|
|
229
229
|
|
|
230
230
|
const result = await adapter.refreshToken('old-refresh-token')
|
|
231
231
|
|
|
@@ -253,11 +253,11 @@ describe('SupabaseAuthAdapter', () => {
|
|
|
253
253
|
json: jest.fn().mockResolvedValue({}),
|
|
254
254
|
}
|
|
255
255
|
|
|
256
|
-
;(nativeFetch.fetch as jest.Mock).mockResolvedValue(mockFetchResponse)
|
|
256
|
+
;(nativeFetch.fetch as unknown as jest.Mock).mockResolvedValue(mockFetchResponse)
|
|
257
257
|
|
|
258
258
|
await adapter.refreshToken('refresh-token')
|
|
259
259
|
|
|
260
|
-
const callArgs = (nativeFetch.fetch as jest.Mock).mock.calls[0]
|
|
260
|
+
const callArgs = (nativeFetch.fetch as unknown as jest.Mock).mock.calls[0]
|
|
261
261
|
expect(callArgs[0]).toBe(
|
|
262
262
|
'https://test.supabase.co/auth/v1/token?grant_type=refresh_token'
|
|
263
263
|
)
|