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
- Function deployment failed: Unable to re...
Hi Appwrite team, I have been experiencing persistent errors when i attempt to push my appwrite functions. The logs on the deployment detail page on the console...
- My cloud functions failing 3 days ago (P...
Hi, My cloud function using python has been failing for 3 days, I didn't push any new deployments... Its something to do with it not recognising the entrypoi...
- Scheduled works locking the entire Maria...
I have a scheduled function and apparently that or something is locking the entire MariaDB database and Appwrite is giving MariaDB errors. This error persists e...