Skip to content

Clear User Cache #75

Description

@Axemasta

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();

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions