I have an app where I want to limit the people accessing the app initially when it’s in testing stage.
I’m looking into adding a step in the user signup process where the user signing up has to add an invite code (generated and sent from another member that’s already been invited OR generated and sent by myself) to be able to complete the signup process.
Are there any functions in existing Appwrite open source that could be used to build such functionality in my own app?
Appwrite teams have team invitations. You could create a team and invite there the users: https://appwrite.io/docs/references/cloud/client-web/teams#createMembership
Thanks @D5 but this doesn’t sound like a useful solution. This talks about internal use, when I just want one of my app users (not a team member or anything) be able to create an invite to share with one of their friends, to grow the user base organically through referrals.
I’m not looking to limit access or create more admins. All users will have the same access, controlled by the settings I set, but they should be able to invite new users through their own referral links/codes.
Do you still think Teams is the best way to go?
You mean like an access code?
If so, a combination of Appwrite function + teams will do the work
Yes! 🎯
Okey, any suggestions on how to combine them?
You basically check in the function if the invite code is correct and if so, you add the user to the team with the code I sent you in the first link
You could find difficult functions first time, but they're easier than what they apparent to be
So then to make the team feature work, I would need to create a team with myself as the main admin, and I send out invites to others?
But then if the ones that I invite invite others, will they become admins too of a team or how does that work? I guess I’ll have to read more about it in the teams doc
To prevent that you can disable teams for client side and use it only server side
I'm not sure if that's allowed for any role
Recommended threads
- Need help with createExecution function
Hi, Need some help understanding createExecution. When requesting function execution via createExecution, the function handler arguments are incorrect and rese...
- Apple OAuth Scopes
Hi Hi, I've configured sign in with apple and this is the response i'm getting from apple once i've signed in. I cant find anywhere I set scopes. I remember se...
- Sign In With Apple OAuth Help
Hi All! I've got a flutter & appwrite app which Im trying to use sign in with apple for. I already have sign in with google working and the function is the sam...