@kavachos/expo brings KavachOS auth to React Native and Expo apps. It stores session tokens in any storage adapter you choose. AsyncStorage, SecureStore, or your own, and sends them via Authorization header rather than cookies.
Installation
Setup
1
Wrap your app
storage prop accepts any object with getItem, setItem, and removeItem methods, the same interface as AsyncStorage and expo-secure-store.2
Use the hooks
Secure token storage
For production apps, useexpo-secure-store to encrypt the session token at rest:
OAuth (deep link redirect)
For OAuth flows in Expo, use theoauth-proxy plugin on your server alongside Linking.openURL on the client: