This commit is contained in:
Wuesteon 2025-12-04 00:32:13 +01:00
parent 16cb8e753b
commit e9caa4a217
46 changed files with 1784 additions and 728 deletions

View file

@ -30,7 +30,7 @@ export function decodeToken(token: string): DecodedToken | null {
/**
* Check if a token is valid locally (not expired)
*/
export function isTokenValidLocally(token: string, bufferSeconds: number = 10): boolean {
export function isTokenValidLocally(token: string, bufferSeconds = 10): boolean {
try {
const payload = decodeToken(token);
if (!payload || !payload.exp) {