Next.js Discord

Discord Forum

TypeError: Key for the RS256 algorithm must be of type CryptoKey.

Unanswered
ABUL KALAM posted this in #help-forum
Open in Discord
I have tried using next-firebase-auth-edge library to verify firebase token.
I am getting an issue with cookieSignatureKeys:
TypeError: Key for the RS256 algorithm must be of type CryptoKey. Received an instance of Uint8Array
I have tried generating keys using like 10 different methods but every time, I get this issue.
Here is my middleware.ts file:

0 Replies