I'm using the magic URL feature to get my users signed in/up. But for new users, I want to set a default name, which they can change later. Like if we use account.create(), we can pass the name there. Can we do the same while updating the magic URL session?
For context, I'm handling the updateMagicURLSession manually as I'm doing it on the server-side
For context, I'm handling the updateMagicURLSession manually as I'm doing it on the server-side
How exactly?
you might need to call user.updateName() after the account has been created
How exactly? I'm hitting the endpoint with all the required headers using JS
fetchas you suggested here (https://discord.com/channels/564160730845151244/1138952904166871206)
you might need to call
user.updateName()after the account has been created it'll make two calls in the server. is there any way we can do it in one call like theaccount.create()?
The Magic URL endpoints do not accept a name parameter at all. So for now, using the updateName suggested by Steven is your best bet
No
What exactly is your code and what's wrong?
my code mostly looks like this https://github.com/Meldiron/appwrite-ssr-next-js/blob/32cbcd586be3d63423d8bfc7a3a7e958dad00eba/src/app/api/login/route.ts#L39
and nothing is actually wrong with the magic URL endpoint. I was just thinking if there's any way to set the user name with the same endpoint, like account.create(). but seems the only way to go is by calling the updateName function
Oh okay. The question about updating the name has been answered then
i got another queue about storage.updateFile(). should i continue it here or create another post regarding that?
New post
[SOLVED] how can i set an username while creating the account with magic URL?
Recommended threads
- How to Display File in Web?
I'm trying to use Appwrite's Storage to store images and display them in my app, however when I use the `getFileView`, `getFileDownload` or `getFilePreview` met...
- Project Paused Despite Daily Active Usag...
I noticed that my project was automatically **paused**, even though it is actively being used. The project is an **attendance application** that is used daily b...
- Sudden CORS Errors - Domain hasn't Chang...
I have an Appwrite project with two web apps configured, the first one has the hostname `*` and the second one I just added to test if it could fix the issue wi...