Skip to content

TokenResolver

type TokenResolver = (credential) =>
| TokenIdentity
| null
| Promise<TokenIdentity | null>;

Defined in: src/http/introspect.ts:103

Resolves an opaque credential, returning null when it does not resolve.

Throw AuthUnavailableError when the answer is not knowable — a backing store that is down is not the same as a credential that is unknown, and a caller that negative-caches the second must not cache the first.

Parameter Type
credential string

| TokenIdentity | null | Promise<TokenIdentity | null>