peakshift / btc-payer

Proof of concept of a social payments application using BTC Pay Server as a backend (shared channels).
https://peakshift.github.io/btc-payer
11 stars 4 forks source link

Implement secure storage #9

Open jonathanpalma opened 2 years ago

jonathanpalma commented 2 years ago

Implement a secure storage library and replace the current implementation of how tokens are stored

https://github.com/peakshift/btc-payer/blob/9a16b4616368dfaac080e776c933f8b9e3b0a6b9/src/providers/AuthProvider.tsx#L52-L53

https://github.com/peakshift/btc-payer/blob/9a16b4616368dfaac080e776c933f8b9e3b0a6b9/src/providers/AuthProvider.tsx#L71-L72

Useful links

https://reactnative.dev/docs/security#storing-sensitive-info

https://reactnative.dev/docs/security#secure-storage

Potential libraries

https://github.com/emeraldsanto/react-native-encrypted-storage

https://github.com/oblador/react-native-keychain