Passwordless *magic* link authentication
Does anyone have good experiences with the "magic link" style of authentication? I've been looking into Auth0 'authentication as a service' but I'm wondering also just implementing my own (I use django). Are there any security risks to simply generating a UUID that has an expiry date, sending an email with that UUID and a link, and logging in the appropriate account when they click the link?
Yeah, you can do that! I don't see any issues with UUID
The things that you should make sure you can do is make your credential is revokable, and not something repeatable like a hash of an email or a user id or something crazy like that.
In your case, revoking the magiclink UUID would mean you going and deleting the UUID from your user's row in the db, so you have that covered.
And generating a fresh UUID (and during the login, checking to make sure its the right one) means you have the repeatable thing covered.
Please sign in to leave a comment.