From 90ab863e6991f870fb488f0104b84567aa8e0e39 Mon Sep 17 00:00:00 2001 From: Igor O Date: Tue, 26 Jan 2021 13:43:26 -0800 Subject: [PATCH] Fixed signout on close user account (#1129) Fixed signout on close user account added notification parameter to send an email for the developer portal --- src/services/usersService.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/services/usersService.ts b/src/services/usersService.ts index 55fca32b9..152b90fcd 100644 --- a/src/services/usersService.ts +++ b/src/services/usersService.ts @@ -212,11 +212,12 @@ export class UsersService { value: "*" }; - const query = Utils.addQueryParameter(userId, "deleteSubscriptions=true¬ify=true"); + const query = Utils.addQueryParameter(userId, `deleteSubscriptions=true¬ify=true&appType=${Constants.AppType}`); await this.mapiClient.delete(query, [header, MapiClient.getPortalHeader("deleteUser")]); - this.signOut(); + this.authenticator.clearAccessToken(); + location.assign("/"); } catch (error) { this.navigateToSignin();