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

Fresh should export a Storage interface which means it can work with any storage provider. Out of the box, it should come with its own implementation: FreshTokenStorage, based on Hive. #28

Open
akasher opened this issue Aug 12, 2020 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@akasher
Copy link

akasher commented Aug 12, 2020

Currently fresh allows the user to store tokens in which every token storage they may choose.
What if fresh acted a little bit like HydratedBloc and provided a HydratedBlocStorage which is based on Hive.

And additionally the end user should be given an option to extend HydratedStorage to use whichever storage media they choose.

For my private project I have extended OAuth2Token and created a new Token class and corresponding type adapter which can be stored in Hive.

And Extended TokenStorage to create a HiveTokenStorage.

@akasher akasher changed the title Fresh Should Provide HiveTokenStorage like HydratedBloc provides HydratedStorage. Fresh should export a Storage interface which means it can work with any storage provider. Out of the box, it should come with its own implementation: FreshTokenStorage, based on Hive. Aug 12, 2020
@felangel felangel self-assigned this Oct 28, 2020
@felangel felangel added the enhancement New feature or request label Oct 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants