"ikm" must be at least one byte in length

Viewed 1421
2 Answers

Make sure that your NEXTAUTH_SECRET environment variable in your .env file is populated. You can grab one here: https://generate-secret.vercel.app/32

If your dev environment is running make sure to restart it after updating the variable!

I had similar error on a NextJs Project. Corrected after setting a value of the variable NEXTAUTH_SECRET in the .env file.

Related