mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-31 17:38:28 +00:00
- remove some awaits
- add try catch - small refactoring
This commit is contained in:
@@ -32,7 +32,11 @@ export class AuthenticationApi extends RepoApi {
|
||||
}
|
||||
|
||||
async logout() {
|
||||
try {
|
||||
await this.apiAuth();
|
||||
return await this.alfrescoJsApi.logout();
|
||||
await this.alfrescoJsApi.logout();
|
||||
} catch (error) {
|
||||
console.log('--- authentication api logout catch error: ', error);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user