Leap Social Login
Learn how to implement Leap’s Social Login modal for Web3 authentication in your application
This guide will walk you through the process of integrating Leap’s Social Login SDK directly into your application, without using a Wallet Adapter. This approach provides more flexibility and control over the authentication flow.
Prerequisites
Before you begin, ensure you have:
- A Capsule API key from the Capsule Developer Portal
- Cosmos wallet support enabled in your Capsule Developer Portal
- Set up authentication with Capsule. See our Getting Started guides for details.
If you haven’t set up Capsule authentication yet, complete one of our authentication tutorials first and return to this guide when you’re ready to implement Leap Social Login.
Installation
Install the required packages using your preferred package manager:
Setup
1. Import Required Dependencies
First, import the necessary components and types:
2. Initialize Capsule Provider
You have two options for initializing the provider:
Option 1: Use existing Capsule client
If you’ve already set up Capsule client following the Getting Started guides:
Option 2: Create a new Leap Provider
If you want to initialize a new provider specifically for Leap:
Implementation
Here’s a complete example of implementing the Leap Social Login modal:
Important Implementation Notes
Working with the Authenticated User
After successful authentication, you can interact with the user’s account:
Related Integrations
For alternative integration options, check out:
Was this page helpful?