Files
otunes/apps/mobile/lib/auth-storage.ts
T
joshuafhiggins 73c7283d4d Add Expo mobile app and extract shared Convex package
- Replace mobile placeholder with Expo Router app (tabs, playback, auth, library)
- Move Convex backend to @otunes/convex for web and mobile reuse
- Update web app imports and API routes to use shared package
2026-08-02 04:14:01 +00:00

15 lines
365 B
TypeScript

import * as SecureStore from "expo-secure-store"
import type { TokenStorage } from "@convex-dev/auth/react"
export const secureStorage: TokenStorage = {
getItem(key) {
return SecureStore.getItemAsync(key)
},
setItem(key, value) {
return SecureStore.setItemAsync(key, value)
},
removeItem(key) {
return SecureStore.deleteItemAsync(key)
},
}