Skip to content

Commit dbd2326

Browse files
fix: Removed incorrect string case format from the options.authentica… (#1209)
Signed-off-by: lucasbotingnon <[email protected]>
1 parent 38def1d commit dbd2326

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

libs/providers/flipt-web/src/lib/flipt-web-provider.ts

+1-9
Original file line numberDiff line numberDiff line change
@@ -47,19 +47,11 @@ export class FliptWebProvider implements Provider {
4747
}
4848

4949
async initializeClient() {
50-
let authentication = {};
51-
52-
if (this._options?.authentication && 'clientToken' in this._options.authentication) {
53-
authentication = { client_token: this._options.authentication.clientToken };
54-
} else if (this._options?.authentication && 'jwtToken' in this._options.authentication) {
55-
authentication = { jwt_token: this._options.authentication.jwtToken };
56-
}
57-
5850
try {
5951
this._client = await FliptEvaluationClient.init(this._namespace || 'default', {
6052
url: this._options?.url || 'http://localhost:8080',
6153
fetcher: this._options?.fetcher,
62-
authentication,
54+
authentication: this._options?.authentication,
6355
});
6456
} catch (e) {
6557
throw new ProviderFatalError(getErrorMessage(e));

0 commit comments

Comments
 (0)