mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-02-18 16:47:48 +01:00
6 lines
158 B
TypeScript
6 lines
158 B
TypeScript
import type { AccessToken } from './store';
|
|
|
|
export function isTokenExpired(token: AccessToken) {
|
|
return token.expiresAt && Date.now() > token.expiresAt;
|
|
}
|