TypeScript
// Create a temporary client for the invitation
const tempClient = new Client()
.setEndpoint(process.env.NEXT_PUBLIC_APPWRITE_ENDPOINT!)
.setProject(process.env.NEXT_PUBLIC_APPWRITE_PROJECT!);
// Update membership status for the new team member
const tempTeams = new Teams(tempClient);
const membership = await tempTeams.updateMembershipStatus(
teamId,
membershipId,
userId,
secret
);
// TODO: I would like to update the member name and password like below:
const tempAccount = new Account(tempClient);
await tempAccount.updateName(fullName);
await tempAccount.updatePassword(password);
TL;DR
Create a session from teams updateMembershipStatus. Use the tempClient to update member name and password by creating a new Account.Recommended threads
- [Solved] Appwrite project paused
I have github student account. The auth has been paused however the database is working fine. I cant see any option to resume from my console panel. It is just ...
- Missing Invoice
Hi! I need help with billing on my account (marelu@gmail.com). I have never received a single invoice by email. My organization has been on the Pro plan since...
- Appwrite Functions cold start
Hello. I'm seeing really long cold starts on Appwrite Cloud Functions and wanted to know if this is expected. My function just authenticates the user, fetches ...