I am using the phone number authentication and I would like the member to join a team before immediately after registering. However, the email is a required parameter and as my users are registering they do not provide an email. My intention for using teams is to achieve authorisation in order to control access to the resources that the users interact with in my databases both at document and collection levels. Any help or guidance through this is more than welcome. Thanks
What version of Appwrite are you on?
I figured it out.
what was the solution?
I just had to pass some of the parameters as undefined
Something like that. Though it was had figuring out the positions in which to pass the arguments.
And the redirect url was only working for localhost. I tried the other domains it was suggesting but nothing was working out fine. So I decided to go with local host. Otherwise I would have utilized the vercel domain
Something like my-project.vercel.app
I think the order needs to be specified in the documentation.
In which arguments are passed
While calling the team membership api
what version of appwrite are you on and what version of the web SDK?
1.3.7
the order should be the order in the docs: http://localhost:2080/docs/client/teams?sdk=web-default&v=1.3.x#teamsCreateMembership
also, you can mouse over the createMembership function in your code to see the function signature
[SOLVED] Is it possible to create a team membership without using the email?
Thanks
Recommended threads
- Query Appwrite
Hello, I have a question regarding Queries in Appwrite. If I have a string "YYYY-MM", how can I query the $createdAt column to match this filter?
- Different appwrite IDs are getting expos...
File_URL_FORMAT= https://cloud.appwrite.io/v1/storage/buckets/[BUCKET_ID]/files/[FILE_ID]/preview?project=[PROJECT_ID] I'm trying to access files in my web app...
- Invalid document structure: missing requ...
I just pick up my code that's working a week ago, and now I got this error: ``` code: 400, type: 'document_invalid_structure', response: { message: 'Inv...