mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-23 15:06:43 +02:00
fix lint
This commit is contained in:
parent
16cb8e753b
commit
e9caa4a217
46 changed files with 1784 additions and 728 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue