PM-7392 - Per PR feedback, use a named callback for refreshAccessTokenErrorCallback in CLI
This commit is contained in:
parent
4ded9e85ac
commit
dd6d3017f7
|
@ -406,15 +406,18 @@ export class Main {
|
|||
" (" +
|
||||
this.platformUtilsService.getDeviceString().toUpperCase() +
|
||||
")";
|
||||
|
||||
const refreshAccessTokenErrorCallback = () => {
|
||||
throw new Error("Refresh Access token error");
|
||||
};
|
||||
|
||||
this.apiService = new NodeApiService(
|
||||
this.tokenService,
|
||||
this.platformUtilsService,
|
||||
this.environmentService,
|
||||
this.appIdService,
|
||||
this.stateService,
|
||||
() => {
|
||||
throw new Error("Refresh Access token error");
|
||||
},
|
||||
refreshAccessTokenErrorCallback,
|
||||
this.logService,
|
||||
logoutCallback,
|
||||
customUserAgent,
|
||||
|
|
Loading…
Reference in New Issue