Quickstart
The MoonPay Authenticate SDK allows developers to easily integrate MoonPay's authentication capabilities into websites. This guide will walk you through the process of setting up and using the MoonPay Authenticate SDK to enable user authentication via MoonPay services.
📘PrerequisitesBefore you begin, make sure you have a MoonPay Publishable Key. You can obtain this key from your MoonPay Dashboard.
Installation
To get started, you need to install the MoonPay Authenticate SDK package. You can do this using npm:
Shell
Getting started
1. Import the MoonPay Authenticate SDK
TypeScript
2. Configure the SDK
Initialize and configure the MoonPay Authenticate SDK with your MoonPay Publishable Key:
TypeScript
3. Implement login and logout
You can now use the SDK methods to manage user authentication. Here's a simple example of how to handle login and logout:
TypeScript
4. Access user info
After a user logs in, you can access their personal information, such as their name and email, contained within the partner token.
TypeScript
Next up:
Last updated