Is there some way to accomplish inviting users that once authed are given a certain role? Basically:
1. I am a user and want to invite someone that's currently not a user
2. Generate some kind of invite link or similar (potentially scoped to only be allowed to auth by invited@user.com, but not necessary)
3. When invited user goes to the link, they are asked to sign in/up
4. After authing they are given a certain role specific to the invite link (in my case they'd get the admin role)
It seems like this is directionally right:
https://supertokens.com/docs/passwordless/common-customizations/disable-sign-up/passwordless-via-invite-link
But I'm not sure how to get these ppl to actually register a proper account (without the passwordless signin) so that they can auth again in the future (without the magic link)
Maybe account linking is needed to link the passwordless account user to e.g. a google auth?
https://supertokens.com/docs/thirdparty/common-customizations/account-linking