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

Function storeClientTokenExpiration

apps/client/src/code/auth/tokens.ts:55–63  ·  view source on GitHub ↗
(
  token: 'access' | 'refresh',
  duration: number,
)

Source from the content-addressed store, hash-verified

53}
54
55export function storeClientTokenExpiration(
56 token: 'access' | 'refresh',
57 duration: number,
58): void {
59 internals.storage.setItem(
60 `${token}TokenExpiration`,
61 (Date.now() + duration).toString(),
62 );
63}
64
65export function storeClientTokenExpirations(): void {
66 storeClientTokenExpiration('access', ACCESS_TOKEN_DURATION);

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected