thols
thols•7h ago

Custom state in JWT ?

In my expo app: in the auth flow i check whether the user is verified or not 1. I don't want to show the loading state when checking 2. This check should also work on the offline mode without internet (so i thought JWT would be helpful here) 3. It should be secure - like user don't change something in local to get into the app when unverified So i thought of including a custom state in the JWT token which is produced by the convex auth ! but i think it is not possible for now - i have to use the custom JWT provider to use that - but if i use like that can i get to use the other convex auth features like before ? like normal convex auth without changing anything ? or any other ways ? 🙂 Stuck here for a long time to find a reliable solution ! Thanks in advance
1 Reply
erquhart
erquhart•6h ago
There's no official guidance on this, but I would try one of the Expo storage api's and just keep things there that I can reference next time the app starts. Could be user data, app state, etc: https://docs.expo.dev/develop/user-interface/store-data/

Did you find this page helpful?