Replace succes/error with then/catch (#14358)
This commit is contained in:
parent
08829835ea
commit
899a48301a
1 changed files with 2 additions and 2 deletions
|
@ -64,10 +64,10 @@ export class KeycloakService {
|
|||
if (this.keycloakAuth.token) {
|
||||
this.keycloakAuth
|
||||
.updateToken(5)
|
||||
.success(() => {
|
||||
.then(() => {
|
||||
resolve(this.keycloakAuth.token as string);
|
||||
})
|
||||
.error(() => {
|
||||
.catch(() => {
|
||||
reject('Failed to refresh token');
|
||||
});
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue