We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 34ac68d commit 7b6c2c8Copy full SHA for 7b6c2c8
sample-apps/react/react-dogfood/lib/jwt.ts
@@ -5,6 +5,7 @@ export class JwtTokenGenerator {
5
constructor(secret: string) {
6
this.key = crypto.subtle.importKey(
7
'raw',
8
+ // @ts-expect-error - types changed in TS 5.9.3
9
stringToUint8Array(secret),
10
{ name: 'HMAC', hash: 'SHA-256' },
11
false,
@@ -32,6 +33,7 @@ export class JwtTokenGenerator {
32
33
const signature = await crypto.subtle.sign(
34
35
await this.key,
36
37
stringToUint8Array(headerAndPayload),
38
);
39
0 commit comments