@aws-sdk/token-providers
Version:
A collection of token providers
19 lines (18 loc) • 857 B
TypeScript
import type { TokenIdentityProvider } from "@aws-sdk/types";
import type { FromSsoInit } from "./fromSso";
/**
* Creates a token provider that will attempt to find token from the
* following sources (listed in order of precedence):
* * SSO token from SSO cache or ssoOidc.createToken() call
*
* The default token provider is designed to invoke one provider at a time and only
* continue to the next if no token has been located. It currently has only SSO
* Token Provider in the chain.
*
* @param init Configuration that is passed to each individual
* provider
*
* @see fromSso The function used to source credentials from
* SSO cache or ssoOidc.createToken() call
*/
export declare const nodeProvider: (init?: FromSsoInit) => TokenIdentityProvider;