Skip to content

Commit 851704e

Browse files
docs: update errors.md - add JWEDecryptionError (#7855)
* Update errors.md Added detail for an JWT_SESSION_ERROR. JWEDecryptionFailed * Apply suggestions from code review --------- Co-authored-by: Balázs Orbán <[email protected]>
1 parent 3681b7a commit 851704e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/docs/errors.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,8 @@ The `callbackUrl` provided was either invalid or not defined. See [specifying a
136136

137137
#### JWT_SESSION_ERROR
138138

139+
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.
140+
139141
JWTKeySupport: the key does not support HS512 verify algorithm
140142

141143
The algorithm used for generating your key isn't listed as supported. You can generate a HS512 key using

0 commit comments

Comments
 (0)