Skip to content

Commit 1fb3606

Browse files
wied03andrewpai
andauthored
Update astro/src/content/articles/identity-basics/magic-links.md
Co-authored-by: Andy Pai <andy.pai@gmail.com>
1 parent eac4364 commit 1fb3606

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

astro/src/content/articles/identity-basics/magic-links.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ While other messaging platforms can work with magic links, due to the ubiquity o
2020

2121
## How Does Magic Link Authentication Work?
2222

23-
The process starts when a user inputs their email address (or phone number) into a login form. The backend API service generates a unique token and attaches it to a URL, which we term as the "magic link" (or a code if sent to a phone number). This link is then sent to the user's registered email or phone number. For email use cases, the user opens their email, clicks the magic link, which leads back to the application or service. The server then verifies the token and logs in the user. For phone use cases, the user enters the code from an SMS message into the login form.
23+
The process starts when a user inputs their email address or phone number into a login form. The backend API service either generates a unique token and attaches it to a URL, which we term as the "magic link", or generates a code when using a phone number. This link or code is then sent to the user via email or SMS. For email use cases, the user opens their email, clicks the magic link, which leads back to the application or service. The server then verifies the token and logs in the user. For phone use cases, the user enters the code from an SMS message into the login form.
2424

2525
By doing so, magic links leverage the security of the user's email or SMS provider. If someone can access the magic link -- this paragraph gets awkward --, they already have access to the user's email. If the user's email account is compromised, then they likely have bigger problems than someone accessing your service. The magic link is a one-time URL that can only be used once. This means that if someone steals a magic link that has already been used, they cannot use it again. This means that the user gets the ease of logging in to your system without having to present a credential. But they still benefit from the security around the email account, including any protections the email provider has put in place or MFA the user has added.
2626

0 commit comments

Comments
 (0)