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

feat(@capacitor/bowser) Add option to clear all website data while closing iOS browser window #2192

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

GeroldSchierholz
Copy link

@GeroldSchierholz GeroldSchierholz commented Sep 9, 2024

User Story:

After using the browser window for e.g. oauth login, I would like to have the possibility to clear all website data to ensure that a new login is not using any cookie data and logging me in again.

Description:

Optional config to clear all website data during browser.close.

@GeroldSchierholz GeroldSchierholz changed the title [@capacitor/bowser] Add option to clear all website data while closing iOS browser window feat(@capacitor/bowser) Add option to clear all website data while closing iOS browser window Sep 9, 2024
@bentleyo
Copy link

@GeroldSchierholz nice! Out of curiosity, is it possible to add this as a method we can call programmatically whenever or does the browser have to be open? I was thinking it might be useful to clear the data without requiring the browser window to be open e.g. when hitting a sign-out button in an app.

If you wanted you could then programmatically call it on the browserFinished event to achieve the same functionality.

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

Successfully merging this pull request may close these issues.

2 participants