Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug in authentication no 2 #37

Merged
merged 2 commits into from
Apr 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "solun-api",
"version": "1.2.20",
"version": "1.2.21",
"description": "Exists only to handle any requests from the Solun applications.",
"main": "index.js",
"scripts": {
Expand Down
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
Loading