SDK Method
This method is currently only available through our web, React Native, and Android SDKs. For all other SDKs, refer to our Reveal Page section below.
ImportantImplementing this SDK method will allow your end users to access their private key. Be sure to read through this document carefully before implementing.

user.revealPrivateKey
method to allow your users to view their private keys. Implementing this method will allow your end users to back up their private keys or take them to another wallet. Neither Magic nor the developer can see this key; only the end user can.
Usage
Once you have verified the correct setup of the Magic SDK and successfully authenticated the user, the reveal private key modal can then be displayed by calling therevealPrivateKey
method:
JavaScript
Reveal Page

- 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
Please make sure to deactivate any login methods that you are not using. Login methods can be added and removed at any point and changes will be immediately visible on your reveal page.