MCPcopy Create free account
hub / github.com/DeepNotesApp/DeepNotes / isClientTokenValid

Function isClientTokenValid

apps/client/src/code/auth/tokens.ts:22–30  ·  view source on GitHub ↗
(token: 'access' | 'refresh')

Source from the content-addressed store, hash-verified

20}
21
22export function isClientTokenValid(token: 'access' | 'refresh'): boolean {
23 const expirationDate = getClientTokenExpirationDate(token);
24
25 if (expirationDate == null) {
26 return false;
27 }
28
29 return isTokenValid(expirationDate);
30}
31
32export function isClientTokenExpiring(
33 token: 'access' | 'refresh',

Callers 1

tryRefreshTokensFunction · 0.90

Calls 2

isTokenValidFunction · 0.85

Tested by

no test coverage detected