From 899a48301aafa934bdd79d171b9099874b7ea588 Mon Sep 17 00:00:00 2001 From: MajorZiploc Date: Tue, 28 Mar 2023 10:22:27 -0500 Subject: [PATCH] Replace succes/error with then/catch (#14358) --- .../account/src/app/keycloak-service/keycloak.service.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/themes/src/main/resources/theme/keycloak.v2/account/src/app/keycloak-service/keycloak.service.ts b/themes/src/main/resources/theme/keycloak.v2/account/src/app/keycloak-service/keycloak.service.ts index 9bdeed45d2..70827cb36f 100644 --- a/themes/src/main/resources/theme/keycloak.v2/account/src/app/keycloak-service/keycloak.service.ts +++ b/themes/src/main/resources/theme/keycloak.v2/account/src/app/keycloak-service/keycloak.service.ts @@ -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 {