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 cache and session #67

Closed
asieverding opened this issue Aug 10, 2023 · 17 comments
Closed

Clear cache and session #67

asieverding opened this issue Aug 10, 2023 · 17 comments

Comments

@asieverding
Copy link

Hey there :)
Is there an option to clear browser cache and session? I would like to use the in app browser to process an OAuth login with Microsoft services, but after a logout I need to clear cache and session. Otherwise the OAuth flow authenticates the same user account without login with mail and password the next time the in app browser is opened.

@asieverding
Copy link
Author

Some options like clearcache or clearsessioncache for example. Like in the https://www.npmjs.com/package/cordova-plugin-inappbrowser plugin.

@riderx
Copy link
Contributor

riderx commented Sep 1, 2023

Hello thanks for the report, if you are willing to support the project someone from the community can make it for you:
https://github.com/sponsors/riderx

@riderx
Copy link
Contributor

riderx commented Sep 1, 2023

/bounty 50

@algora-pbc
Copy link

algora-pbc bot commented Sep 1, 2023

💎 $50 bounty created by Capgo
🙋 If you start working on this, comment /attempt #67 to notify everyone
👉 To claim this bounty, submit a pull request that includes the text /claim #67 somewhere in its body
📝 Before proceeding, please make sure you can receive payouts in your country
💵 Payment arrives in your account 2-5 days after the bounty is rewarded
💯 You keep 100% of the bounty award
ℹ️ If something is not clear ask before working on it, otherwise your chance to rework it is high
🎥 To claim you need to provide in your PR a demo video of the change
👨‍👩‍👧‍👦 Join the Discord to get help
📏 Check all Bounty rules
🙏 Thank you for contributing to Cap-go/capacitor-inappbrowser!

Attempt Started (GMT+0) Solution
🔴 @ayusham001 Sep 1, 2023, 5:36:21 PM WIP
🟡 @jessmathews Sep 3, 2023, 5:19:23 AM #85

@ayusham001
Copy link
Contributor

ayusham001 commented Sep 1, 2023

/attempt #67

Options

@jessmathews
Copy link
Contributor

jessmathews commented Sep 3, 2023

/attempt #67

Options

@algora-pbc
Copy link

algora-pbc bot commented Sep 3, 2023

Note: The user @ayusham001 is already attempting to complete issue #67 and claim the bounty. If you attempt to complete the same issue, there is a chance that @ayusham001 will complete the issue first, and be awarded the bounty. We recommend discussing with @ayusham001 and potentially collaborating on the same solution versus creating an alternate solution.

@algora-pbc
Copy link

algora-pbc bot commented Sep 8, 2023

@ayusham001: Reminder that in 7 days the bounty will become up for grabs, so please submit a pull request before then 🙏

@algora-pbc
Copy link

algora-pbc bot commented Sep 10, 2023

@jessmathews: Reminder that in 7 days the bounty will become up for grabs, so please submit a pull request before then 🙏

@jessmathews
Copy link
Contributor

hey @riderx has this issue been solved?
do I need to add to the readme after adding the clearcache or clearsessioncache functionality?

@riderx
Copy link
Contributor

riderx commented Sep 12, 2023

Thanks for solving this, the readme is auto update when you update the TS file, just run the build command.
Please also run the lint and verify to be sure all build

@jessmathews
Copy link
Contributor

I ran

npm run lint
npm run build 
npm run verify:web && npm run verify:android

The only errors were /home/user/capacitor-inappbrowser/src/definitions.ts 0:0 error Parsing error: DeprecationError: 'originalKeywordKind' has been deprecated since v5.0.0 and can no longer be used. Use 'identifierToKeywordKind(identifier)' instead
Everything else worked fine.

@algora-pbc
Copy link

algora-pbc bot commented Sep 13, 2023

💡 @jessmathews submitted a pull request that claims the bounty. You can visit your org dashboard to reward.

@asieverding
Copy link
Author

any updates?

Copy link

algora-pbc bot commented Dec 31, 2023

🎉🎈 @jessmathews has been awarded $50! 🎈🎊

@riderx
Copy link
Contributor

riderx commented Dec 31, 2023

This has been merged and fixed ! sorry for the delay

@riderx riderx closed this as completed Dec 31, 2023
@asieverding
Copy link
Author

asieverding commented Feb 9, 2024

Can someone provide an example how to use it correctly?
I want to clear the cache of the in app browser completly. The new feature is bound to the clearCookies function and requires an url but even if I enter a url and set the cache option to true, the cache is not deleted.

Is only the cookie cache deleted or also the session cookie cache?

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

No branches or pull requests

4 participants