Skip to content

Commit ff60b6f

Browse files
fix: go-feature-flag provider this.apiKey is undefined (open-feature#319)
Signed-off-by: Thomas Poignant <[email protected]>
1 parent 0294c7d commit ff60b6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libs/providers/go-feature-flag/src/lib/go-feature-flag-provider.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export class GoFeatureFlagProvider implements Provider {
4141

4242
// Add API key to the headers
4343
if (options.apiKey) {
44-
axios.defaults.headers.common['Authorization'] = `Bearer ${this.apiKey}`;
44+
axios.defaults.headers.common['Authorization'] = `Bearer ${options.apiKey}`;
4545
}
4646
}
4747

0 commit comments

Comments
 (0)