Replies: 1 comment
-
|
Hi @mfrey43, Thank you for this well-detailed feature request and the proof-of-concept implementation! We appreciate the thorough research you've done and the clear problem statement, highlighting This is a pretty specific case (mobile hybrid apps with strict memory limits), so we'd like to move this to GitHub Discussions first. This will help us see if others face the same issue, gather more use cases, and get feedback on the proposed API. Your proof-of-concept looks fine, so this feature seems doable if we move forward. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Checklist
Describe the problem you'd like to have solved
My Ionic app uses the Capacitor Browser extension as described in this official guide: https://auth0.com/docs/quickstart/native/ionic-angular/01-login
Sometimes after the login flow completes and the inAppBrowser closes, the callback handling fails with the error 'missing_transaction'. This is because the Android system has killed my app to free up memory while it was in the background. When the callback reopens the app the transaction data is lost because it was saved in SessionStorage. My problem is that I can't change the storage location to something that isn't wiped during a restart. I can only configure cookie or session storage.
Describe the ideal solution
I would like to set my own transactionStorage in the AuthorizationParams config object similar to how the cache configuration works. I already created a proof of concept in this commit: mfrey43@90da310
Alternatively, if I had the option to configure the transaction manager to use the cache for storage that would also work for me. I already configured the cache to use the device's native encrypted storage option.
Alternatives and current workarounds
No response
Additional context
I use this library directly without the auth0-angular wrapper because I needed more control.
Beta Was this translation helpful? Give feedback.
All reactions