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

Clear User Cache #75

Open
Axemasta opened this issue Dec 8, 2020 · 0 comments
Open

Clear User Cache #75

Axemasta opened this issue Dec 8, 2020 · 0 comments

Comments

@Axemasta
Copy link
Contributor

Axemasta commented Dec 8, 2020

I can successfully log into google using this plugin, i would like to sign out and make the device available to be signed in by other others.

The first time I run this app I get the following screen

First time running the app

I am able to login as user 1 (myself) and do my business in the app. I decide to logout as user 1 and login as user 2. To logout of the app i've made sure to call CrossGoogleClient.Current.Logout();.

I would now like to login as user2, unfortunately the browser has remembered user1 and their account is available to sign in with. This account is cached so credentials are not needed in order to login as this user.

Logging in a second time

I would like to clear the user cache and force users to enter credentials every-time they try logging into my app.

Is this currently possible? I have done the same thing with microsoft login:

AuthenticationResult authResult = await _pca.AcquireTokenInteractive(MicrosoftAuthConstants.Scopes)
                ......
                .WithPrompt(Prompt.ForceLogin) //This will prevent the browser from displaying other accounts
                ......
                .ExecuteAsync();
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

1 participant