How to automatically assign team membership and paid plans after passwordless auth on invitation links?
Hey everyone,
I'm trying to figure out how to make team invitations work properly with passwordless authentication. Users are completing signup/login but they're not being added to the team or getting the paid plan assigned.
So here's what's happening. I'm using passwordless auth for login and signup, and when I send team invitation links with tokens to users, they authenticate successfully but the team membership and paid plan assignment never happens.
For new users, they click the invite link, land on the invite page, complete the signup form, authenticate successfully, but then they just end up as regular users. No team membership, no paid plan.
For existing users it's the same thing. They click the invite link, land on the invite page, click the login button which redirects them to the login page, they authenticate with passwordless, but again they just become regular users without joining the team or getting the plan.
The authentication part works fine in both cases, it's just the team invitation that's failing. I've checked the invite link generation and the token is being passed correctly. Passwordless flow works perfectly for normal signups and logins, this only happens when users come through team invitation links.
Is there something specific I need to configure to make team invites work with passwordless auth? Has anyone dealt with this before?
Thanks for any help!
Comments
0 comments
Please sign in to leave a comment.