@quatrain/auth-firebase 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-firebase",
|
|
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",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@quatrain/auth": "^1.2.1",
|
|
26
|
-
"@quatrain/backend": "^1.2.
|
|
26
|
+
"@quatrain/backend": "^1.2.5",
|
|
27
27
|
"@quatrain/core": "^1.2.5",
|
|
28
28
|
"firebase-admin": "^13.0.1",
|
|
29
29
|
"node-fetch-native": "^1.6.4"
|
|
@@ -252,7 +252,7 @@ describe('FirebaseAuthAdapter', () => {
|
|
|
252
252
|
json: jest.fn().mockResolvedValue(mockResponse),
|
|
253
253
|
}
|
|
254
254
|
|
|
255
|
-
;(nativeFetch.fetch as jest.Mock).mockResolvedValue(mockFetchResponse)
|
|
255
|
+
;(nativeFetch.fetch as unknown as jest.Mock).mockResolvedValue(mockFetchResponse)
|
|
256
256
|
|
|
257
257
|
const result = await adapter.refreshToken('old-refresh-token')
|
|
258
258
|
|
|
@@ -291,11 +291,11 @@ describe('FirebaseAuthAdapter', () => {
|
|
|
291
291
|
json: jest.fn().mockResolvedValue({}),
|
|
292
292
|
}
|
|
293
293
|
|
|
294
|
-
;(nativeFetch.fetch as jest.Mock).mockResolvedValue(mockFetchResponse)
|
|
294
|
+
;(nativeFetch.fetch as unknown as jest.Mock).mockResolvedValue(mockFetchResponse)
|
|
295
295
|
|
|
296
296
|
await adapter.refreshToken('refresh-token')
|
|
297
297
|
|
|
298
|
-
const callArgs = (nativeFetch.fetch as jest.Mock).mock.calls[0]
|
|
298
|
+
const callArgs = (nativeFetch.fetch as unknown as jest.Mock).mock.calls[0]
|
|
299
299
|
expect(callArgs[0]).toBe(
|
|
300
300
|
'https://securetoken.googleapis.com/v1/token?key=test-api-key'
|
|
301
301
|
)
|