TokenResolver
type TokenResolver = (credential) => | TokenIdentity | null| Promise<TokenIdentity | null>;Defined in: src/token-identity.ts:505
Resolves an opaque credential, returning null when it does not resolve.
Throw IdentityUnavailableError 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. The
HTTP layer’s AuthUnavailableError is accepted too, and translated.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
credential |
string |
Returns
Section titled “Returns”| TokenIdentity
| null
| Promise<TokenIdentity | null>
