Skip to content

Commit

Permalink
docs: update errors.md - add JWEDecryptionError (#7855)
Browse files Browse the repository at this point in the history
* Update errors.md

Added detail for an JWT_SESSION_ERROR. JWEDecryptionFailed

* Apply suggestions from code review

---------

Co-authored-by: Balázs Orbán <info@balazsorban.com>
  • Loading branch information
wroscoe and balazsorban44 authored Jan 23, 2024
1 parent 3681b7a commit 851704e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/docs/errors.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

1 comment on commit 851704e

@vercel
Copy link

@vercel vercel bot commented on 851704e Jan 23, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.