fresh icon indicating copy to clipboard operation
fresh copied to clipboard

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.

Open akasher opened this issue 5 years ago • 0 comments

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<OAuth2Token> to create a HiveTokenStorage<OAuth2Token>.

akasher avatar Aug 12 '20 10:08 akasher