Description
The current monorepo builds are failing due to TypeScript type mismatches and missing imports. In addition, the mobile application contains several TODO placeholders for authentication token storage.
This issue tracks resolving all workspace compilation errors and implementing token storage using AsyncStorage.
Proposed Changes
Backend Fixes
- Direct imports of
encrypt in connect.ts instead of relying on undefined app.encryption.
- Explicit
crypto.randomBytes import in connect.ts.
- Standardized route schema generics on
app.get / app.delete calls.
- Correct Pino logging overloads in
catch (err) blocks.
- Mocked Prisma client typecast in profiles tests.
Mobile Fixes & Features
- Implemented auth token loading, saving, and clearing in
AuthContext via AsyncStorage.
- Changed
ConnectPlatformsScreen and ViewsScreen imports to named imports.
- Used
useNavigation hook in SettingsScreen.tsx.
- Typed Skeleton
width and height with DimensionValue from react-native.
Description
The current monorepo builds are failing due to TypeScript type mismatches and missing imports. In addition, the mobile application contains several
TODOplaceholders for authentication token storage.This issue tracks resolving all workspace compilation errors and implementing token storage using AsyncStorage.
Proposed Changes
Backend Fixes
encryptinconnect.tsinstead of relying on undefinedapp.encryption.crypto.randomBytesimport inconnect.ts.app.get/app.deletecalls.catch (err)blocks.Mobile Fixes & Features
AuthContextviaAsyncStorage.ConnectPlatformsScreenandViewsScreenimports to named imports.useNavigationhook inSettingsScreen.tsx.widthandheightwithDimensionValuefromreact-native.