AntoineDujar / Ledger

https://ledgermad.netlify.app
1 stars 0 forks source link

Encrypted offline storage #3

Closed AntoineDujar closed 5 months ago

AntoineDujar commented 6 months ago

Look into and try implementing encrypting offline storage to store user auth_id, or any private user information.

Currently the user's information is stored offline as plain text with Zustand.

The details of a user's information are set in the main root file "App.tsx" by an event listener getSession() or onAuthStateChange() you can start from there to try and put it somewhere encrypted

A good place to start would be the documentation for Expo's "SecureStore"

https://docs.expo.dev/versions/latest/sdk/securestore/

middle of this tutorial that has mention and implementation of "SecureStore"

https://supabase.com/docs/guides/getting-started/tutorials/with-expo-react-native?auth-store=secure-store#project-setup

linear[bot] commented 6 months ago

MAD-45 Encrypted offline storage