General
Can I delete users from the dashboard?
Can I delete users from the dashboard?
How can I service GDPR deletion requests from my users?
How can I service GDPR deletion requests from my users?
How do I restrict which Domains have access to my API key?
How do I restrict which Domains have access to my API key?
-
http://localhost
-
https://example.com
-
https://*.example.com
-
http://example.com:8080
Can Magic serve as my database?
Can Magic serve as my database?
email
, public address
and issuer
) but that doesn’t stop you from prompting users for more info (such as first name, last name, etc) and storing that in your database. Magic also does not support importing user data.Can I link email addresses and social logins?
Can I link email addresses and social logins?
Can we separate the login and signup?
Can we separate the login and signup?
loginWithMagicLink
and if the email doesn’t exist you know it’s a first time user and redirect them to the register page.How can I migrate off Magic?
How can I migrate off Magic?
issuer
) and email both stored in your database (and any other user info) so are free to choose another service or move authentication in-house should you want to do that.Questions Around Email
What to do if emails are delayed
What to do if emails are delayed
What if a user loses access to their email?
What if a user loses access to their email?
Questions Around SMS
Is my country code supported?
Is my country code supported?
Sessions and Tokens
How long does a user remain logged in?
How long does a user remain logged in?
Session vs DID token?
Session vs DID token?
magic.user.isLoggedIn
which will return true
or false
.A DID token
is proof of authentication, not necessarily proof of having a valid session. That’s because the getIdToken
sdk method can create a token that expires far in the future, and just because a token was theoretically created with an expiration for one year in the future, the session set by Magic may not still be valid. The DID token that’s returned from loginWithMagicLink
has a default lifespan of 15 minutes and is generally used to send to the server after login to validate its authenticity with the admin sdk validate
function. The DID token
can be used to access a protected API route on the server if stored in a cookie or client-side storage. You can create a token with getIdToken
any time a user is logged in.Developers can control how long the Magic session lasts in the developer dashboard.What is the unique user ID I should save to my database?
What is the unique user ID I should save to my database?
issuer
is the unique ID provided by Magic for each user. The DID token
shouldn’t ever be used as the unique ID because for each user, and each login, the token is unique. When decoded, it contains information about the login, including a timestamp.Are DID tokens invalidated when a user logs out?
Are DID tokens invalidated when a user logs out?
Refresh Token Security
Securing the Magic refresh token
Securing the Magic refresh token
Blockchains
How can I allow users to view and export their private key?
How can I allow users to view and export their private key?

-
Your API key (starts with
pk_live
) - A list of blockchains you are using
-
Your app name for the endpoint, such as
https://reveal.magic.link/your-app-name
How can I make changes to my legacy private key reveal page?
How can I make changes to my legacy private key reveal page?
App Store Review
How do I provide the reviewer with a test account?
How do I provide the reviewer with a test account?
[email protected]
and click the link when triggered by the reviewer to log them in.