Skip to content

Commit 7b6c2c8

Browse files
committed
silence type issues
1 parent 34ac68d commit 7b6c2c8

File tree

1 file changed

+2
-0
lines changed
  • sample-apps/react/react-dogfood/lib

1 file changed

+2
-0
lines changed

sample-apps/react/react-dogfood/lib/jwt.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ export class JwtTokenGenerator {
55
constructor(secret: string) {
66
this.key = crypto.subtle.importKey(
77
'raw',
8+
// @ts-expect-error - types changed in TS 5.9.3
89
stringToUint8Array(secret),
910
{ name: 'HMAC', hash: 'SHA-256' },
1011
false,
@@ -32,6 +33,7 @@ export class JwtTokenGenerator {
3233
const signature = await crypto.subtle.sign(
3334
{ name: 'HMAC', hash: 'SHA-256' },
3435
await this.key,
36+
// @ts-expect-error - types changed in TS 5.9.3
3537
stringToUint8Array(headerAndPayload),
3638
);
3739

0 commit comments

Comments
 (0)