From 51d92fe2e0ef8778053f1ad4864031167a2f6d44 Mon Sep 17 00:00:00 2001 From: ak68a Date: Wed, 25 Mar 2026 07:09:22 -0500 Subject: [PATCH] fix(demo): resolve type error in skyfire-kya token creation Replace @ts-expect-error suppression with an explicit type assertion for the non-standard "kya+JWT" typ header. KYA tokens intentionally use a custom media type per the Skyfire spec, so the assertion documents the intent rather than silencing the error. --- demos/skyfire-kya/src/kya-token.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/demos/skyfire-kya/src/kya-token.ts b/demos/skyfire-kya/src/kya-token.ts index 4b63e17..927adbd 100644 --- a/demos/skyfire-kya/src/kya-token.ts +++ b/demos/skyfire-kya/src/kya-token.ts @@ -52,8 +52,7 @@ export async function createMockSkyfireKyaToken( expiresIn: 3600, }, { - // @ts-expect-error - TODO: fix this - typ: "kya+JWT", + typ: "kya+JWT" as "JWT", alg: "ES256", }, )