Skip to content

Allow user to set SecretClientOptions#194

Merged
zhiyuanliang-ms merged 2 commits intomainfrom
zhiyuanliang/secret-client-option
May 8, 2025
Merged

Allow user to set SecretClientOptions#194
zhiyuanliang-ms merged 2 commits intomainfrom
zhiyuanliang/secret-client-option

Conversation

@zhiyuanliang-ms
Copy link
Member

@zhiyuanliang-ms zhiyuanliang-ms commented May 8, 2025

Why this PR?

#577

New API

const credential = new DefaultAzureCredential();
const appConfig = await load(endpoint, credential, {
    keyVaultOptions: {
        credential: credential,
        clientOptions: { // configure a custom SecretClientOptions
            retryOptions: { 
                maxRetries: 3, 
                maxRetryDelayInMs: 1000 
            }
        }
    }
});

@zhiyuanliang-ms zhiyuanliang-ms merged commit 1e2f74d into main May 8, 2025
6 checks passed
@zhiyuanliang-ms zhiyuanliang-ms deleted the zhiyuanliang/secret-client-option branch May 8, 2025 08:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants