Is there any way to get the username after auth with email Id . Currently I am handling the sign up like this
async function handleSignUp(data) {
try {
const response = await account.create(
ID.unique(),
data.email,
data.password
);
console.log(response);
// success
setUser((prev) => ({ ...prev, ...data }));
} catch (error) {
console.log(error); // Failure
}
}
I am not prompting for username in UI , so I am not passing it
Hi, so Appwrite doesnt have concept of usernames. You can use user preferences to store any kind of data on the user (key/value pairs) Or you could have profiles collection to make this username public to other users
[SOLVED] Get Username using Email Id
Recommended threads
- Send Email Verification With REST
I am using REST to create a user on the server side after receiving form data from the client. After the account is successfully created i wanted to send the v...
- Use different email hosts for different ...
Hello, I have 2 projects and i want to be able to set up email templates in the projects. Both projects will have different email host configurations. I see ...
- Get team fail in appwrite function
I try to get team of a user inside appwrite function, but i get this error: `AppwriteException: User (role: guests) missing scope (teams.read)` If i try on cl...