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
- Use queries on relationships other than ...
Can I use queries other than Query.select on relationships such as Query.equal('relationship.someattr', 'value')?
- Hosted a webite on appwrite 2 days ago, ...
I dont really know why its down, everything looks fine, the deployments and all
- OAuth login not working on deployed app ...
Hey there, I've been dealing with an issue where I cannot use OAuth on my deployed app - locally everything works fine. I am using react-router in Framework Mo...