From 851704e357ead2cf181703290eede23fb59157f7 Mon Sep 17 00:00:00 2001 From: Will Roscoe Date: Tue, 23 Jan 2024 03:16:11 -0700 Subject: [PATCH] docs: update errors.md - add JWEDecryptionError (#7855) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Update errors.md Added detail for an JWT_SESSION_ERROR. JWEDecryptionFailed * Apply suggestions from code review --------- Co-authored-by: Balázs Orbán --- docs/docs/errors.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/docs/errors.md b/docs/docs/errors.md index d5f3d40ca4..f23d10099a 100644 --- a/docs/docs/errors.md +++ b/docs/docs/errors.md @@ -136,6 +136,8 @@ The `callbackUrl` provided was either invalid or not defined. See [specifying a #### JWT_SESSION_ERROR +JWEDecryptionFailed: NextAuth.js needs `NEXTAUTH_SECRET` environment variable to encrypt JWTs and to hash email verification tokens. This can also occur if you have changed the `NEXTAUTH_SECRET`, but you still had an active session with the old secret. Logging in again solves the issue. + JWTKeySupport: the key does not support HS512 verify algorithm The algorithm used for generating your key isn't listed as supported. You can generate a HS512 key using