Skip to content

Comments

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

Open
GeroldSchierholz wants to merge 1 commit intoionic-team:mainfrom
GeroldSchierholz:main
Open

feat(@capacitor/bowser) Add option to clear all website data while closing iOS browser window#2192
GeroldSchierholz wants to merge 1 commit intoionic-team:mainfrom
GeroldSchierholz:main

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