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

Function expiresAtFrom

packages/core/sdk/src/oauth-service.ts:528–529  ·  view source on GitHub ↗
(token: OAuth2TokenResponse)

Source from the content-addressed store, hash-verified

526 `oauth-client:${owner}:${slug}:secret`;
527
528const expiresAtFrom = (token: OAuth2TokenResponse): number | null =>
529 typeof token.expires_in === "number" ? Date.now() + token.expires_in * 1000 : null;
530
531/** Error message surfaced when a redirect-requiring OAuth flow runs on an
532 * executor that was constructed without a `redirectUri`. Previously this path

Callers 2

mintFromTokenFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected