From c0a2a5f17128b0af0a233349731535f957977c28 Mon Sep 17 00:00:00 2001 From: Dobromir Popov Date: Wed, 17 Apr 2024 01:38:08 +0300 Subject: [PATCH] more typo --- pages/api/auth/apple-signin.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/api/auth/apple-signin.ts b/pages/api/auth/apple-signin.ts index 8b152a7..d8f2503 100644 --- a/pages/api/auth/apple-signin.ts +++ b/pages/api/auth/apple-signin.ts @@ -35,6 +35,6 @@ function generateClientSecret() { sub: appleAppID, }; - const token = jwt.sign(claims, privateKey, { algorithm: 'ES256', header: { alg: 'ES256', kid: keyId } }); + const token = jwt.sign(claims, appleKey, { algorithm: 'ES256', header: { alg: 'ES256', kid: keyID } }); return token; }