@quatrain/auth-firebase 1.1.26 → 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.
|
@@ -104,7 +104,7 @@ describe('FirebaseAuthAdapter', () => {
|
|
|
104
104
|
name: 'John Doe',
|
|
105
105
|
email: 'john@example.com',
|
|
106
106
|
phone: '+1234567890',
|
|
107
|
-
password: 'hashed-password',
|
|
107
|
+
password: 'hashed-password', // NOSONAR
|
|
108
108
|
disabled: false,
|
|
109
109
|
},
|
|
110
110
|
};
|
|
@@ -119,7 +119,7 @@ describe('FirebaseAuthAdapter', () => {
|
|
|
119
119
|
uid: 'user-123',
|
|
120
120
|
email: 'john@example.com',
|
|
121
121
|
phoneNumber: '+1234567890',
|
|
122
|
-
password: 'clearPassword123',
|
|
122
|
+
password: 'clearPassword123', // NOSONAR
|
|
123
123
|
disabled: false,
|
|
124
124
|
displayName: 'John Doe',
|
|
125
125
|
});
|
|
@@ -136,7 +136,7 @@ describe('FirebaseAuthAdapter', () => {
|
|
|
136
136
|
uid: 'user-123',
|
|
137
137
|
email: 'john@example.com',
|
|
138
138
|
phoneNumber: '+1234567890',
|
|
139
|
-
password: 'hashed-password',
|
|
139
|
+
password: 'hashed-password', // NOSONAR
|
|
140
140
|
disabled: false,
|
|
141
141
|
displayName: 'John Doe',
|
|
142
142
|
});
|
|
@@ -148,7 +148,7 @@ describe('FirebaseAuthAdapter', () => {
|
|
|
148
148
|
name: 'Jane Doe',
|
|
149
149
|
email: 'jane@example.com',
|
|
150
150
|
phone: '+0987654321',
|
|
151
|
-
password: 'password456',
|
|
151
|
+
password: 'password456', // NOSONAR
|
|
152
152
|
},
|
|
153
153
|
};
|
|
154
154
|
mockAuth.createUser.mockResolvedValue({ uid: 'user-456' });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quatrain/auth-firebase",
|
|
3
|
-
"version": "1.
|
|
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",
|
|
@@ -19,12 +19,12 @@
|
|
|
19
19
|
},
|
|
20
20
|
"author": "Quatrain Développement SAS <developers@quatrain.com>",
|
|
21
21
|
"peerDependencies": {
|
|
22
|
-
"@quatrain/core": "^1.
|
|
22
|
+
"@quatrain/core": "^1.2.5"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@quatrain/auth": "^1.1
|
|
26
|
-
"@quatrain/backend": "^1.
|
|
27
|
-
"@quatrain/core": "^1.
|
|
25
|
+
"@quatrain/auth": "^1.2.1",
|
|
26
|
+
"@quatrain/backend": "^1.2.5",
|
|
27
|
+
"@quatrain/core": "^1.2.5",
|
|
28
28
|
"firebase-admin": "^13.0.1",
|
|
29
29
|
"node-fetch-native": "^1.6.4"
|
|
30
30
|
},
|
|
@@ -45,5 +45,8 @@
|
|
|
45
45
|
"build": "tsc",
|
|
46
46
|
"wbuild": "tsc --watch",
|
|
47
47
|
"bump-to": "yarn version"
|
|
48
|
+
},
|
|
49
|
+
"typedoc": {
|
|
50
|
+
"entryPoint": "src/index.ts"
|
|
48
51
|
}
|
|
49
52
|
}
|
|
@@ -71,7 +71,7 @@ describe('FirebaseAuthAdapter', () => {
|
|
|
71
71
|
name: 'John Doe',
|
|
72
72
|
email: 'john@example.com',
|
|
73
73
|
phone: '+1234567890',
|
|
74
|
-
password: 'hashed-password',
|
|
74
|
+
password: 'hashed-password', // NOSONAR
|
|
75
75
|
disabled: false,
|
|
76
76
|
},
|
|
77
77
|
} as unknown as User
|
|
@@ -90,7 +90,7 @@ describe('FirebaseAuthAdapter', () => {
|
|
|
90
90
|
uid: 'user-123',
|
|
91
91
|
email: 'john@example.com',
|
|
92
92
|
phoneNumber: '+1234567890',
|
|
93
|
-
password: 'clearPassword123',
|
|
93
|
+
password: 'clearPassword123', // NOSONAR
|
|
94
94
|
disabled: false,
|
|
95
95
|
displayName: 'John Doe',
|
|
96
96
|
})
|
|
@@ -112,7 +112,7 @@ describe('FirebaseAuthAdapter', () => {
|
|
|
112
112
|
uid: 'user-123',
|
|
113
113
|
email: 'john@example.com',
|
|
114
114
|
phoneNumber: '+1234567890',
|
|
115
|
-
password: 'hashed-password',
|
|
115
|
+
password: 'hashed-password', // NOSONAR
|
|
116
116
|
disabled: false,
|
|
117
117
|
displayName: 'John Doe',
|
|
118
118
|
})
|
|
@@ -125,7 +125,7 @@ describe('FirebaseAuthAdapter', () => {
|
|
|
125
125
|
name: 'Jane Doe',
|
|
126
126
|
email: 'jane@example.com',
|
|
127
127
|
phone: '+0987654321',
|
|
128
|
-
password: 'password456',
|
|
128
|
+
password: 'password456', // NOSONAR
|
|
129
129
|
},
|
|
130
130
|
} as unknown as User
|
|
131
131
|
|
|
@@ -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
|
)
|