File tree Expand file tree Collapse file tree 1 file changed +1
-9
lines changed
libs/providers/flipt-web/src/lib Expand file tree Collapse file tree 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 {
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 ) ) ;
You can’t perform that action at this time.
0 commit comments