Web Login Methods
NEAR offers multiple options to allow users to login using NEAR accounts. Below are the most popular methods to integrate web login into your web app or website, each tailored to different use cases and user experiences.
Once the user is logged in, they will be able to use their accounts to interact with the NEAR blockchain, making call to smart contracts, transfer tokens, and more.
Summary of Available Methods
Method | Wallet Login | Social Login | Key Owners | Description |
---|---|---|---|---|
Wallet Selector | ✅ | ❌ | User | Popup modal to select from existing NEAR wallets |
NEAR Connector | ✅ | ❌ | User | Popup modal to select from existing NEAR wallets |
Privy Social Login | ❌ | ✅ | Developer | |
Web3Auth | ❌ | ✅ | User | Login using email or social accounts |
Wallet Selector
The wallet selector is a javascript library that allows you to easily add a modal popup
to your web, so users can login using one of the existing NEAR wallets.
It includes support for the most popular wallets, and react hooks
to easily integrate it into your app.
You can learn how to integrate the wallet selector into your app in our Wallet Selector Tutorial guide.
NEAR Connector
Considered a successor to the wallet selector, the NEAR Connector is a zero-dependency lightweight library that allows users to connect to your dApp using their preferred wallet.
Check our NEAR Connector Integration Example to learn how to integrate the NEAR Connector into your web app
Privy Social Login
Privy is a third-party service that allows users to login using their email or social accounts (Google, Facebook, Twitter, etc). Upon login, a NEAR wallet is created for the user, which they can fund and use to interact with your dApp.
Check our Privy Integration Example to learn how to integrate Privy into your web app
Web3Auth
Web3Auth is a third-party service that allows users to login using their email or social accounts (Google, Facebook, Twitter, etc). Upon login, a NEAR wallet is created for the user, which they can fund and use to interact with your dApp.
Check our Web3Auth Integration Example to learn how to integrate Privy into your web app
The ethereum wallet login offered by Web3Auth will not allow you to interact with NEAR contracts