Description
Login with NEAR WordPress plugin allows to easy setup and customize login with NEAR functionality at your WordPress site by using simple shortcode [login_near_link].
Benefits
-
Provides the most popular Near Wallets: Plugin supports “Near Wallet”, “My Near Wallet”, “Here Wallet”, “Meteor Wallet” “Sender”.
-
Easy registration and login: If user has a Near Wallet, he already can use all functionality from your site and identified as WP User.
-
Call smart contracts from single endpoint: Plugin is a wrapped implementation for official Near Wallet Selector (https://github.com/near/wallet-selector). If you use a smart contract it provides possibility to use limited access key for it. Also, you can make calls to change/view methods on another smart contracts.
-
Easy to modify: You can easily change login, logout button text and provide advanced classed to customize style from code
For plugin developers
- If you want to create plugin with smart contract and call it from logged users you can simply do it in this way:
- 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/
Screenshots
Fill the form with your configs: contract-id (your contract id, optional), login/logout button text (text that will be presented on frontend) classes (for extra styles), network (to use testnet or mainnet) screenshot-1.png. Link will be on your site screenshot-3.png. For now plugin supports NearWallet, MyNearWallet, Here Wallet screenshot-4.png. Logout button will replace login button after login screenshot-5.png.
Reviews
Contributors & Developers
“Login with NEAR” is open source software. The following people have contributed to this plugin.
ContributorsTranslate “Login with NEAR” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
Changelog
0.0.2
- [Improvement] Improved wallet integration and contract calls
0.0.3
- [Improvement] Minor bugfix
0.0.4
- [Improvement] Provide demo link to readme
0.0.5
- [Improvement] Modify plugin title
0.0.6
- [Improvement] Minor bugfix
0.0.7
- [Improvement] Update description
0.0.8
- [Improvement] Minor bugfix
0.0.9
- [Improvement] Update description
0.1.0
- [Improvement] Provide is loaded for compatibility with another plugins
0.1.1
- [Improvement] set timeout on init form for better compatibility
0.1.2
- [Improvement] minor fix for composer issue
0.1.3
- [Improvement] fix structure
0.1.4
- [Improvement] fix structure
0.1.5
- [Improvement] fix structure
0.1.6
- [Improvement] minor fix warnings
0.1.7
- [Improvement] minor tested with 6.4.1
0.1.8
- [Improvement] fix tags
0.1.9
- [Improvement] fix wp version
0.2.0
- [Improvement] fix login script
0.2.1
- [Improvement] fix tags
0.2.2
- [Improvement] fix login script