Skip to content
Back

How to implement MagicURL Registration with email

  • 0
  • Web
Stefan
1 May, 2024, 01:34
TypeScript
try {
        await account.createMagicURLToken(ID.unique(), email);
    }
    catch (error: any) {
        console.log(error);
        throw new Error(error);
    }

This code actually doesn't work. I want a support.

TL;DR
Developers are asking how to implement MagicURL Registration with email using Appwrite. The solution is to check the documentation at <https://appwrite.io/docs/references/1.5.x/client-web/account#createMagicURLToken>. The provided code snippet is incorrect and needs to be adjusted based on the documentation.
Guille
1 May, 2024, 01:42
Stefan
1 May, 2024, 01:43

Can't I use that for user registration? Because unregistered user will not be having userId

Guille
1 May, 2024, 01:45

I think you can't, you first have to register your user, what is your use case?

Stefan
1 May, 2024, 01:47

Like 3rd party auth, that makes users do registration via magic link, Social media, etc. Can't Appwrite do that?

Steven
1 May, 2024, 01:59

Yes, read the docs: https://appwrite.io/docs/products/auth and use the corresponding method for your version of Appwrite

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more