RLLLUPOriginal post
Web Developer
JavaScript
// 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);Summary
Create a session from teams updateMembershipStatus. Use the tempClient to update member name and password by creating a new Account.