Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sign user out after account deletion #434

Closed
unboeing opened this issue Jun 20, 2022 · 3 comments
Closed

Sign user out after account deletion #434

unboeing opened this issue Jun 20, 2022 · 3 comments

Comments

@unboeing
Copy link

Hello again. After a user successfully deletes their B2C account using the custom policy from this repo, is there a way to trigger the mobile app to sign out the user? I already have a method that does the signing out, but don't know how to let the app know that a user has indeed deleted their account and thus the user is still signed into the app and can use its account-based features.

@JasSuri
Copy link
Contributor

JasSuri commented Jul 4, 2022

When your app launches the delete user policy, pass in an encoded state parameter with the MSAL library (or other lib).

When the user completes the journey, the state param is returned to the app. Now use that as an indicator to call logout().

@JasSuri JasSuri closed this as completed Jul 4, 2022
@deepak9705
Copy link

what about if user login at different places with same account

@JasSuri
Copy link
Contributor

JasSuri commented Jan 18, 2023

The user remains logged in at other locations until the access token and refresh token expires.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants