File tree Expand file tree Collapse file tree 1 file changed +0
-3
lines changed
redisinsight/api/src/modules/rdi/client Expand file tree Collapse file tree 1 file changed +0
-3
lines changed Original file line number Diff line number Diff line change @@ -146,20 +146,17 @@ export class ApiRdiClient extends RdiClient {
146
146
}
147
147
148
148
async connect ( ) : Promise < void > {
149
- console . log ( 'conenct' )
150
149
try {
151
150
const response = await this . client . post (
152
151
RdiUrl . Login ,
153
152
{ username : this . rdi . username , password : this . rdi . password } ,
154
153
) ;
155
- console . log ( response , 'response' ) ;
156
154
const accessToken = response . data . access_token ;
157
155
const decodedJwt = decode ( accessToken ) ;
158
156
159
157
this . auth = { jwt : accessToken , exp : decodedJwt . exp } ;
160
158
this . client . defaults . headers . common [ 'Authorization' ] = `Bearer ${ accessToken } ` ;
161
159
} catch ( e ) {
162
- console . log ( e ) ;
163
160
throw wrapRdiPipelineError ( e ) ;
164
161
}
165
162
}
You can’t perform that action at this time.
0 commit comments