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; }