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

Function areClientTokensExpiring

apps/client/src/code/auth/tokens.ts:45–53  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

43}
44
45export function areClientTokensExpiring(): boolean {
46 return (
47 isClientTokenExpiring('access', ACCESS_TOKEN_DURATION) ||
48 isClientTokenExpiring(
49 'refresh',
50 getRefreshTokenExpiration(shouldRememberSession()),
51 )
52 );
53}
54
55export function storeClientTokenExpiration(
56 token: 'access' | 'refresh',

Callers 1

tryRefreshTokensFunction · 0.90

Calls 3

shouldRememberSessionFunction · 0.90
isClientTokenExpiringFunction · 0.85

Tested by

no test coverage detected