Skip to content

Commit

Permalink
fixed #2
Browse files Browse the repository at this point in the history
  • Loading branch information
rocambille authored Feb 24, 2024
1 parent e05a78d commit 2a53fd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/JWT.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ const login = async (req, res, next) => {
// ... (votre code pour la validation de l'utilisateur)
const token = await jwt.sign(
{ sub: user.id, isAdmin: user.isAdmin },
{ sub: user.id, isAdmin: user.is_admin },
process.env.APP_SECRET,
{
expiresIn: "1h",
Expand Down

0 comments on commit 2a53fd6

Please sign in to comment.