Skip to content

Commit

Permalink
Missing '_KEY' at the end of an env variable
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielWTE committed Apr 8, 2024
1 parent a646984 commit 6914a2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/jwt.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import jwt from 'jsonwebtoken';

export function getJWTData(token: string) {
const jwt_secret = process.env.JWT_SECRET as string;
const jwt_secret = process.env.JWT_SECRET_KEY as string;
try {
const decoded = jwt.verify(token, jwt_secret);
return decoded;
Expand Down

0 comments on commit 6914a2b

Please sign in to comment.