Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: env var cred provider syntax in docs examples #1388

Merged
merged 1 commit into from
Jul 10, 2024
Merged

Conversation

cprice404
Copy link
Contributor

No description provided.

@@ -111,7 +111,7 @@ function retrieveApiKeyFromYourSecretsManager(): string {
}

function example_API_CredentialProviderFromEnvVar() {
CredentialProvider.fromEnvironmentVariable({environmentVariableName: 'MOMENTO_API_KEY'});
CredentialProvider.fromEnvironmentVariable('MOMENTO_API_KEY');
}

function example_API_CredentialProviderFromString() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does this new syntax apply to FromString too?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's available there, yeah, but I don't feel strongly about going through and fixing all of those proactively since it's a little less verbose.

@cprice404 cprice404 merged commit 2d6fac7 into main Jul 10, 2024
13 checks passed
@cprice404 cprice404 deleted the cprice404-patch-1 branch July 10, 2024 21:49
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