function challengeBasedAuthenticationPolicy(credential) {
    const tokenCache = new ExpiringAccessTokenCache();
    const challengeCache = new AuthenticationChallengeCache();
    return {
        create: (nextPolicy, options) => {
            return new ChallengeBasedAuthenticationPolicy(nextPolicy, options, credential, tokenCache, challengeCache);
        }
    };
}
/**
 * Creates a new ChallengeBasedAuthenticationPolicy factory.
 *
 * @param credential - The TokenCredential implementation that can supply the challenge token.
 */
Creates a new ChallengeBasedAuthenticationPolicy factory.
@param credential - The TokenCredential implementation that can supply the challenge token.
Creates a new ChallengeBasedAuthenticationPolicy factory . @param credential - The TokenCredential implementation that can supply the challenge token .
function challengeBasedAuthenticationPolicy(credential) {
    const tokenCache = new ExpiringAccessTokenCache();
    const challengeCache = new AuthenticationChallengeCache();
    return {
        create: (nextPolicy, options) => {
            return new ChallengeBasedAuthenticationPolicy(nextPolicy, options, credential, tokenCache, challengeCache);
        }
    };
}
function challengeBasedAuthenticationPolicy ( credential ) { const tokenCache = new ExpiringAccessTokenCache ( ) ; const challengeCache = new AuthenticationChallengeCache ( ) ; return { create : ( nextPolicy , options ) => { return new ChallengeBasedAuthenticationPolicy ( nextPolicy , options , credential , tokenCache , challengeCache ) ; } } ; }
Creates a new ChallengeBasedAuthenticationPolicy factory.
Creates a new ChallengeBasedAuthenticationPolicy factory .