Replace succes/error with then/catch (#14358)

This commit is contained in:
MajorZiploc 2023-03-28 10:22:27 -05:00 committed by GitHub
parent 08829835ea
commit 899a48301a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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