
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
- Creating a relationship with nested obje...
{ "data": { "name": "DiDi", "type": "Software Development", "userJobs": [{ "$id": "68cbf1e2003612fb13ca", "j...
- Realtime integration with SSR auth
Hey, I have a nextjs website with SSR auth, works great. I use a session client for user verification and an admin client with API key. Both is used with node-...
- Looking for Partner
I'm looking for a partner for long-term collaboration. Of course, you'll get paid for it. If you are interested, please send a DM to me
