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
- Rate límit reset
I've made an error in the code by not setting a limit on how much rows should i get per request because i was working with a small db for testing. Last night Iv...
- How to set permissions using the createO...
Hi, I'm trying to create a set of registers in a table using the tableDB.createOperations function, but it seems like it doesnt support/expect the usage of the ...
- Fulltext index creation fails due to Inn...
I'm running a self-hosted Appwrite 1.8.1 instance and encountering an issue when creating fulltext indexes on a collection. **The Problem:** Fulltext index cre...