File tree 1 file changed +1
-9
lines changed
libs/providers/flipt-web/src/lib
1 file changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -47,19 +47,11 @@ export class FliptWebProvider implements Provider {
47
47
}
48
48
49
49
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
-
58
50
try {
59
51
this . _client = await FliptEvaluationClient . init ( this . _namespace || 'default' , {
60
52
url : this . _options ?. url || 'http://localhost:8080' ,
61
53
fetcher : this . _options ?. fetcher ,
62
- authentication,
54
+ authentication : this . _options ?. authentication ,
63
55
} ) ;
64
56
} catch ( e ) {
65
57
throw new ProviderFatalError ( getErrorMessage ( e ) ) ;
You can’t perform that action at this time.
0 commit comments