Skip to content

Commit

Permalink
docs(next): Update config comment (#4664)
Browse files Browse the repository at this point in the history
* Update Custom JWT decode method
* Update docs/docs/configuration/nextjs.md

Co-authored-by: Lluis Agusti <hi@llu.lu>
  • Loading branch information
orlinzer and ubbe-xyz committed Jun 3, 2022
1 parent e4ee520 commit 008f29e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/docs/configuration/nextjs.md
Expand Up @@ -34,8 +34,8 @@ import jwt from "jsonwebtoken";

export default NextAuth({
providers: [...],
secret: /* Please use `process.env.NEXTAUTH_SECRET` */,
jwt: {
// secret: PLEASE USE process.env.NEXTAUTH_SECRET
encode: async ({ secret, token }) => {
return jwt.sign(token as any, secret);
},
Expand Down

1 comment on commit 008f29e

@vercel
Copy link

@vercel vercel bot commented on 008f29e Jun 3, 2022

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.