• Creates a token provider that will attempt to find identity from the following sources (listed in order of precedence):

    • Environment variables exposed via process.env
    • Stedi identity from web token cache

    The default token provider will invoke one provider at a time and only continue to the next if no identity have been located. For example, if the process finds values defined via the STEDI_ACCESS_TOKEN environment variables, the files at ~/.cache/stedi and ~/.config/stedi will not be read.

    See

    • fromEnv The function used to source identity from environment variables
    • fromTokenFile The function used to source identity from token file

    Parameters

    Returns MemoizedProvider<TokenIdentity>