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

Function reauth

packages/core/sdk/src/executor.ts:2431–2443  ·  view source on GitHub ↗
(
          message: string,
          options?: { readonly credentialMissing?: boolean; readonly blockedByAdmin?: boolean },
        )

Source from the content-addressed store, hash-verified

2429 Effect.gen(function* () {
2430 const owner = row.owner as Owner;
2431 const reauth = (
2432 message: string,
2433 options?: { readonly credentialMissing?: boolean; readonly blockedByAdmin?: boolean },
2434 ): CredentialResolutionError =>
2435 new CredentialResolutionError({
2436 owner,
2437 integration: IntegrationSlug.make(row.integration),
2438 name: ConnectionName.make(row.name),
2439 message,
2440 reauthRequired: true,
2441 ...(options?.credentialMissing === true ? { credentialMissing: true } : {}),
2442 ...(options?.blockedByAdmin === true ? { blockedByAdmin: true } : {}),
2443 });
2444
2445 // A recorded invalid_grant is the AS's standing verdict on this grant:
2446 // re-sending it cannot succeed, so don't. Fail as reauth-required

Callers 1

performTokenRefreshFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected