Skip to content

Comments

fix: remove hardcoded default server URL from mobile app#136

Open
skywinder wants to merge 2 commits intoUshadow-io:devfrom
skywinder:baseurl
Open

fix: remove hardcoded default server URL from mobile app#136
skywinder wants to merge 2 commits intoUshadow-io:devfrom
skywinder:baseurl

Conversation

@skywinder
Copy link
Contributor

Summary

  • Remove hardcoded default server URL from mobile app config
  • Users now set the server URL during first login via the login screen
  • Fixed missing import for getDefaultServerUrl and setDefaultServerUrl in LoginScreen

Changes

  • config.ts: Changed DEFAULT_SERVER_URL from hardcoded URL to empty string
  • authStorage.ts: Updated to return empty string when no user default is set
  • LoginScreen.tsx: Added missing imports for auth storage functions

Test plan

  • Fresh install of mobile app should show empty server URL field
  • User enters their server URL and logs in
  • "Save as default" checkbox persists the URL for future logins
  • Subsequent logins auto-populate the saved default URL

Users now set the server URL during first login instead of having
a hardcoded default. Also fixed missing import for authStorage functions.
@skywinder skywinder marked this pull request as draft January 25, 2026 15:09
- Add EXPO_PUBLIC_DEFAULT_SERVER_URL env var support
- Create .env.example for documentation
- Update README with build configuration instructions
@skywinder
Copy link
Contributor Author

@skywinder skywinder marked this pull request as ready for review January 25, 2026 15:19
@thestumonkey
Copy link
Member

we don't need this, that's whatthe QR code is for

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants