fix(invite): route register vs sign-in + prefill email (public lookup) #24

Merged
tanweer919 merged 1 commits from tanweer919/lynkeduppro-crm:feat/login-methods into goutamnextflow 2026-07-13 14:55:34 +00:00
Collaborator

Invite landing page now looks the token up and routes correctly (register for new invitees with email prefilled+locked; sign in for existing accounts with email prefilled), and login redeems the pending invite after sign-in. Pairs with be-crm public lookup endpoint.

Invite landing page now looks the token up and routes correctly (register for new invitees with email prefilled+locked; sign in for existing accounts with email prefilled), and login redeems the pending invite after sign-in. Pairs with be-crm public lookup endpoint.
tanweer919 added 1 commit 2026-07-13 14:55:32 +00:00
The invite link is token-only, so the landing page couldn't tell the invited
email or whether an account existed — it dumped everyone on an empty register
screen. Now it calls a public lookup (/api/invite/lookup → be-crm) and:
- first-time invitee → register with the email prefilled + locked;
- email already registered → sign in with the email prefilled;
- signed-in + registered → accept immediately; signed-in + no profile → onboarding.
Login now redeems the pending invite after sign-in (password/OTP/OAuth), so an
existing user's invite is accepted on login (not only when already logged in).
tanweer919 merged commit 0643b8c9b2 into goutamnextflow 2026-07-13 14:55:34 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Goutam/lynkeduppro-crm#24