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

Add configuration option for custom transaction storage #1273

Open
5 tasks done
mfrey43 opened this issue May 29, 2024 · 0 comments
Open
5 tasks done

Add configuration option for custom transaction storage #1273

mfrey43 opened this issue May 29, 2024 · 0 comments
Labels
feature request A feature has been asked for or suggested by the community

Comments

@mfrey43
Copy link

mfrey43 commented May 29, 2024

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.

@mfrey43 mfrey43 added the feature request A feature has been asked for or suggested by the community label May 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request A feature has been asked for or suggested by the community
Projects
None yet
Development

No branches or pull requests

1 participant