Skip to content

feat: add centralized authenticated API request handler for mobile#338

Open
Midoriya-w wants to merge 1 commit into
Dev-Card:mainfrom
Midoriya-w:feat/mobile-auth-request-handler
Open

feat: add centralized authenticated API request handler for mobile#338
Midoriya-w wants to merge 1 commit into
Dev-Card:mainfrom
Midoriya-w:feat/mobile-auth-request-handler

Conversation

@Midoriya-w
Copy link
Copy Markdown
Contributor

Closes #325

Changes:

  • Added apps/mobile/src/utils/apiClient.ts — centralized authenticated request handler
  • Automatically injects Authorization: Bearer <token> header
  • Handles 401/403 responses with onUnauthorized callback for session cleanup
  • Consistent error handling across all API calls
  • Reduces duplicated auth logic across CardsScreen, ConnectPlatformsScreen, DevCardViewScreen, HomeScreen, LinksScreen

@Harxhit Harxhit added the gssoc:approved Required label for every approved PR. Gives the base +50 points and enables contribution tracking. label May 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gssoc:approved Required label for every approved PR. Gives the base +50 points and enables contribution tracking.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Mobile app lacks centralized authenticated request handling for protected API calls

2 participants