
Security News
US Government Forces Anthropic to Pull Claude Fable Days After Launch
Anthropic says the directive cited national security concerns over a narrow jailbreak, but offered no specific technical details.
For general information about Ezauth and setting up your app please see this post from @noisy: How to configure Ezauth and use it with your application
You can download a minified version of ezauth.js here: https://eziranetwork.github.io/ezauth.js-angular/ezauth.js.min.js and include it in your HTML page:
<script src="/scripts/ezauth.min.js"></script>
Call the Initialize() method when your app first loads to initialize the SDK:
var ezauth = require('ezauth.js');
var api = ezauth.Initialize({
app: 'busy',
callbackURL: 'http://localhost:8000/demo/',
accessToken: 'access_token',
scope: ['vote', 'comment']
});
Parameters:
The following method returns a URL that you can redirect the user to so that they may log in to your app through Ezauth:
var link = api.getLoginURL(state);
console.log(link)
// => https://auth.ezira.io/oauth2/authorize?client_id=[app]&redirect_uri=[callbackURL]&scope=vote,comment&state=[state]
Parameters:
After logging in, Ezauth will redirect the user to the "redirect_uri" specified in the login url above and add the following query string parameters for your app to use:
Once a user is logged in to your app you can call the following method to get the details of their account:
api.me(function (err, res) {
console.log(err, res)
});
If it is successful, the result will be a JSON object with the following properties:
account:{id: 338059, name: "yabapmatt", owner: {}, active: {}, posting: {}, ...}
name:"yabapmatt"
scope:["vote"]
user:"yabapmatt"
user_metadata:{}
_id:"yabapmatt"
The vote() method will cast a vote on the specified post or comment from the current user:
api.vote(voter, author, permlink, weight, function (err, res) {
console.log(err, res)
});
Parameters:
The comment() method will post a comment on an existing post or comment from the current user:
api.comment(parentAuthor, parentPermlink, author, permlink, title, body, jsonMetadata, function (err, res) {
console.log(err, res)
});
The sign() method creates a URL to which your app can redirect the user to perform a signed transaction on the blockchain such as a transfer or delegation:
var link = api.sign('transfer', {
to: 'fabien',
amount: '1.000 ECOT',
memo: 'Hello World!',
}, 'http://localhost:8000/demo/transfer-complete');
console.log(link);
// => https://auth.ezira.io/sign/transfer?to=fabien&amount=1.000%20ECOT&memo=Hello%20World!&redirect_uri=http%3A%2F%2Flocalhost%3A8000%2Fdemo%2Ftransfer-complete
The revokeToken() method will log the current user out of your application by revoking the access token provided to your app for that user:
api.revokeToken(function (err, res) {
console.log(err, res)
});
api.reblog(account, author, permlink, function (err, res) {
console.log(err, res)
});
api.follow(follower, following, function (err, res) {
console.log(err, res)
});
api.unfollow(unfollower, unfollowing, function (err, res) {
console.log(err, res)
});
api.ignore(follower, following, function (err, res) {
console.log(err, res)
});
api.claimRewardBalance(account, rewardEcoin, rewardEZD, rewardEZP, function (err, res) {
console.log(err, res)
});
api.updateUserMetadata(metadata, function (err, res) {
console.log(err, res)
});
Initialize function now. See documentation above.[user@linux ~]$ npm i
[user@linux ~]$ npm run build
publish if you want to
[user@linux ~]$ npm publish
FAQs
Ezauth Javascript SDK Library
We found that ezauth.js demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Anthropic says the directive cited national security concerns over a narrow jailbreak, but offered no specific technical details.

Security News
A network of 152 Chrome live wallpaper extensions hid ad tracking and made extension-driven traffic look like Google search clicks.

Company News
Socket’s first CISO brings deep experience securing high-growth SaaS companies as open source supply chain threats accelerate.