Trying to user teams.createMembership (appwrite.js),
I am trying to send an invite to my gmail but it is failing stating the email is invalid
AppwriteException: Invalid email: Value must be a valid email address
[Error] Method: POST
[Error] URL: /v1/teams/:teamId/memberships
[Error] Type: Utopia\Exception
[Error] Message: Invalid email: Value must be a valid email address
[Error] File: /usr/src/code/vendor/utopia-php/framework/src/App.php
[Error] Line: 742```
My Code:
```.teams.createMembership('client', '[email protected]', roles, `${Server.baseURL}/invite/${companyId}?tkn=${authToken}`)```
the email is 100% a valid email, any insight on this?