Skip to content

Commit

Permalink
Update index.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
moonlightnexus authored Nov 19, 2023
1 parent 40fd3bc commit 6d9a759
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export class AuthLiteClient {
}

private jwtEncode(key: string, data: object): string {
return sign(data, key, { algorithm: "HS256" });
return sign(data, key, { algorithm: "HS256", noTimestamp: true });
}

private jwtDecode(token: string, secret: string): any {
Expand Down

0 comments on commit 6d9a759

Please sign in to comment.