Skip to main content

AUTH_MODES

@forge/monorepo


@forge/monorepo / backend/src / AUTH_MODES

Variable: AUTH_MODES

const AUTH_MODES: readonly ["token", "oauth2"]

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

How a tenant supplied the credential.

Not the same question as the scheme: an OAuth access token is presented as a bearer, so the two would collapse if they shared a type — and the collapse would lose exactly the fact #264 needs, which is whether there is a login URL to send someone to.