-
Notifications
You must be signed in to change notification settings - Fork 0
Auth: Mobile — Deep link invite handling #132
Copy link
Copy link
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
Auth System — Mobile Step 3
Handle invite deep links so workers can tap a link and register directly in the app.
URL schemes:
cafejusto://invite/TOKENhttps://coffee.chainbytes.io/invite/TOKEN(universal link)
app.json config:
{
"scheme": "cafejusto",
"intentFilters": [{
"action": "VIEW",
"data": [{ "scheme": "https", "host": "coffee.chainbytes.io", "pathPrefix": "/invite" }]
}]
}Flow:
- Worker receives SMS/WhatsApp with invite link
- Taps link → app opens (or app store if not installed)
- App navigates to RegisterScreen with token
GET /api/auth/invites/:tokenshows: "Finca Las Nubes invites you as Worker"- Worker fills name + password → registered + logged in
Implementation:
- Configure deep linking in app.json
- Link handler in App.tsx navigation
- RegisterScreen accepts token from deep link or manual entry
- Requires new EAS build (native config change)
Depends on: Mobile AuthStack, invite endpoints
Design doc: docs/AUTH.md
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request