Skip to content

fix: Resolve TypeScript build errors and implement mobile auth token storage #198

@mramansayyad

Description

@mramansayyad

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

  1. Direct imports of encrypt in connect.ts instead of relying on undefined app.encryption.
  2. Explicit crypto.randomBytes import in connect.ts.
  3. Standardized route schema generics on app.get / app.delete calls.
  4. Correct Pino logging overloads in catch (err) blocks.
  5. Mocked Prisma client typecast in profiles tests.

Mobile Fixes & Features

  1. Implemented auth token loading, saving, and clearing in AuthContext via AsyncStorage.
  2. Changed ConnectPlatformsScreen and ViewsScreen imports to named imports.
  3. Used useNavigation hook in SettingsScreen.tsx.
  4. Typed Skeleton width and height with DimensionValue from react-native.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions