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.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
credential |
string |
Returns
Section titled “Returns”| TokenIdentity
| null
| Promise<TokenIdentity | null>
