Skip to content

Auth: Mobile — Deep link invite handling #132

@EricGrill

Description

@EricGrill

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/TOKEN
  • https://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:

  1. Worker receives SMS/WhatsApp with invite link
  2. Taps link → app opens (or app store if not installed)
  3. App navigates to RegisterScreen with token
  4. GET /api/auth/invites/:token shows: "Finca Las Nubes invites you as Worker"
  5. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions