PM-7392 - Per PR feedback, use a named callback for refreshAccessTokenErrorCallback in CLI

This commit is contained in:
Jared Snider 2024-05-13 14:10:36 -04:00
parent 4ded9e85ac
commit dd6d3017f7
No known key found for this signature in database
GPG Key ID: A149DDD612516286
1 changed files with 6 additions and 3 deletions

View File

@ -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,