Login with NEAR

Login with NEAR is a WordPress plugin that enables seamless Web3 authentication by allowing users to log in using their NEAR Protocol wallets. By integrating the official NEAR Wallet Selector, the plugin supports various NEAR-compatible wallets, including MyNearWallet, Hot Wallet, Meteor Wallet, and more.

?? Key Features

  1. NEAR Wallet Integration: Facilitates user authentication through popular NEAR wallets, streamlining the login process for users already engaged in the NEAR ecosystem.

  2. Smart Contract Interaction: Provides the ability to call smart contract methods directly from the WordPress site, supporting both view and change methods, and allowing the use of limited access keys for enhanced security.

  3. Customizable Shortcode: Utilizes a simple shortcode [login_near_link] to embed the NEAR login button anywhere on the site, with options to modify button text and apply custom CSS classes for styling.

  4. User Registration and Login: Automatically registers and logs in users who authenticate via their NEAR wallets, creating corresponding WordPress user accounts and simplifying user management.

  5. Customization Flexibility: Modify login/logout button text and apply advanced styling with ease directly from the code.

?? Use Cases

  • Web3 Communities: Ideal for blockchain-based communities seeking to authenticate users through NEAR wallets.
  • Decentralized Applications (dApps): Enables dApps built on WordPress to interact with NEAR smart contracts, facilitating decentralized functionalities directly from the website.
  • Token-Gated Content: Supports the creation of exclusive content accessible only to users authenticated via NEAR wallets, enabling token-based access control.
  • By integrating blockchain authentication into WordPress, the Login with NEAR plugin bridges the gap between traditional web platforms and decentralized technologies, offering a user-friendly solution for incorporating Web3 functionalities into your website.

For WordPress developers

  • Integrate smart contracts effortlessly and call them from logged-in users using simple JavaScript methods:7:
  • View method: await window.mainWallet.viewMethod({contractId: string, method: string, args: {} }
  • Change method: await window.mainWallet.callMethod({contractId: string, method: string, args: {}, gas: number, deposit: number})

Important links

  • Plugin Demo: http://livedemo.kinsta.cloud/
0

评论0

 
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
显示验证码
没有账号?注册  忘记密码?

社交账号快速登录