Skip to content

Commit afe7cd1

Browse files
committed
Update SignOptions to fix a type error
1 parent 8610b94 commit afe7cd1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/resources/mocks.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -205,8 +205,8 @@ export function generateIdToken(overrides?: object, claims?: object): string {
205205
expiresIn: ONE_HOUR_IN_SECONDS,
206206
issuer: 'https://securetoken.google.com/' + projectId,
207207
subject: uid,
208-
algorithm: ALGORITHM,
209208
header: {
209+
alg: ALGORITHM,
210210
kid: certificateObject.private_key_id,
211211
},
212212
}, overrides);
@@ -232,8 +232,8 @@ export function generateSessionCookie(overrides?: object, expiresIn?: number): s
232232
expiresIn: expiresIn || ONE_HOUR_IN_SECONDS,
233233
issuer: 'https://session.firebase.google.com/' + projectId,
234234
subject: uid,
235-
algorithm: ALGORITHM,
236235
header: {
236+
alg: ALGORITHM,
237237
kid: certificateObject.private_key_id,
238238
},
239239
}, overrides);
@@ -253,8 +253,8 @@ export function generateAppCheckToken(overrides?: object): string {
253253
expiresIn: ONE_HOUR_IN_SECONDS,
254254
issuer: 'https://firebaseappcheck.googleapis.com/' + projectNumber,
255255
subject: appId,
256-
algorithm: ALGORITHM,
257256
header: {
257+
alg: ALGORITHM,
258258
kid: jwksResponse.keys[0].kid,
259259
},
260260
}, overrides);

0 commit comments

Comments
 (0)