Skip to main content

RefreshingResolverOptions

@forge/monorepo


@forge/monorepo / backend/src / RefreshingResolverOptions

Type Alias: RefreshingResolverOptions

RefreshingResolverOptions = object

Defined in: backend/src/tools/credentials.ts:408

Properties

now?

readonly optional now?: () => number

Defined in: backend/src/tools/credentials.ts:411

Injectable so a test can move time without waiting for it.

Returns

number


onRefreshed?

readonly optional onRefreshed?: (input) => void

Defined in: backend/src/tools/credentials.ts:418

Told that a refresh happened. Never told the token — see CredentialAudit, same reasoning.

expiresAt is included because it is not a secret and it is the one thing an operator debugging a refresh loop actually needs.

Parameters

input
expiresAt

string

ref

CredentialRef

tenantId

string

Returns

void


skewMs?

readonly optional skewMs?: number

Defined in: backend/src/tools/credentials.ts:409