mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-11 05:42:19 +00:00
Add invite universal-link landing for app deep-link
Encode the admin invite QR as a clean /invite/<hlv_token> universal-link that the iOS app intercepts via the AASA wildcard matcher. Add the matching web route as a thin, shape-validated redirect onto the existing register flow, and open the path on the public allowlist so an unauthenticated scanner reaches it. A malformed token segment is indistinguishable from no invite — no database hit, no enumeration oracle. The token is never logged.
This commit is contained in:
1 parent
e561f8d893
commit
c1eb618dcc
8 files changed
+235
-5
No files matched your search
@@ -13451,7 +13451,8 @@ components:
|
||||
description: Raw invite token (`hlv_<64hex>`). Shown exactly once — never persisted in plaintext.
|
||||
url:
|
||||
type: string
|
||||
description: Composed registration deep link (`/auth/register?invite=…`).
|
||||
description: Composed invite universal-link (`/invite/<hlv_token>`). On iOS it opens the app onto onboarding
|
||||
registration; in a browser it redirects to `/auth/register?invite=…`.
|
||||
required:
|
||||
- id
|
||||
- createdAt
|
||||
|
||||
Reference in new issue
Block a user