File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -22,13 +22,13 @@ export class CloudAuth implements Authenticator {
22
22
}
23
23
24
24
private isExpired ( config ) {
25
- const token = config [ 'access-token' ]
25
+ const token = config [ 'access-token' ] ;
26
26
const expiry = config . expiry ;
27
27
if ( ! token ) {
28
28
return true ;
29
29
}
30
- if ( ! expiry ) {
31
- return false
30
+ if ( ! expiry ) {
31
+ return false ;
32
32
}
33
33
34
34
const expiration = Date . parse ( expiry ) ;
@@ -70,6 +70,6 @@ export class CloudAuth implements Authenticator {
70
70
expiryPathKey = '$' + expiryPathKey . slice ( 1 , - 1 ) ;
71
71
72
72
config [ 'access-token' ] = jsonpath . query ( resultObj , tokenPathKey ) ;
73
- config [ ' expiry' ] = jsonpath . query ( resultObj , expiryPathKey ) ;
73
+ config . expiry = jsonpath . query ( resultObj , expiryPathKey ) ;
74
74
}
75
75
}
You can’t perform that action at this time.
0 commit comments