mirror of
https://github.com/mudabbir-ahmad/peworkshop.git
synced 2026-10-07 19:50:20 +00:00
changed the way clue buttons are rendered so their indexing exists for when they are needed but if the clue for them doesnt exist they dont cause errors
This commit is contained in:
1 parent
0d57df2559
commit
f7a5d744b0
2 files changed
+29
-60
No files matched your search
+1
-1
@@ -10,7 +10,7 @@ const JWT_SECRET =
|
||||
export function createToken(payload) {
|
||||
// Check if payload already has an expiration date set
|
||||
const options = payload.exp ? {} : { expiresIn: "30d" };
|
||||
|
||||
|
||||
return jwt.sign(payload, JWT_SECRET, options);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user