MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / accessTokenExpiry

Function accessTokenExpiry

apps/cli/src/device-login.ts:111–112  ·  view source on GitHub ↗
(accessToken: string)

Source from the content-addressed store, hash-verified

109
110/** Read `exp` (epoch seconds) out of a JWT access token without verifying it. */
111export const accessTokenExpiry = (accessToken: string): number | undefined =>
112 asNumber(decodeAccessTokenClaims(accessToken)?.exp);
113
114const deriveExpiresAt = (tokens: {
115 accessToken: string;

Callers 1

deriveExpiresAtFunction · 0.85

Calls 2

asNumberFunction · 0.85
decodeAccessTokenClaimsFunction · 0.85

Tested by

no test coverage detected