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

Store successful donations in local storage #67

Open
LeafHacker opened this issue Feb 9, 2021 · 1 comment
Open

Store successful donations in local storage #67

LeafHacker opened this issue Feb 9, 2021 · 1 comment

Comments

@LeafHacker
Copy link
Contributor

Currently, a user navigating away from an in-progress or completed donation will result in the registration token being lost. #66 will help mitigate this issue, but it'd be great if supported browsers could show recent donation tokens using local storage.

@LeafHacker
Copy link
Contributor Author

A script in api.js could call the check token endpoint for each cached token and delete any used ones. This could be run onload by the donate & register forms.

We could even make the check token endpoint support checking a list of tokens, although idk if this presents a potential security risk without harsh rate limits.

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

No branches or pull requests

1 participant