Security News
ESLint is Now Language-Agnostic: Linting JSON, Markdown, and Beyond
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
Utility to make Tent logins super easy for web apps. By opening a popup, the login page won't be left and you can handle success and error events simply by waiting for a callback.
To circumvent CORS restrictions this library relies on a server that proxies the discover request. You could use tent-discover-proxy for this.
You can either use browserify or download a standalone build here to load this module into the browser.
Take a look at the example for further inspiration.
With npm:
npm install tent-login --save
Or download the latest build here.
var login = require('tent-login')
// suppose this is called when the login form is submitted
function onSubmit(e) {
e.preventDefault()
var entity = document.getElementById('entity').value
var opts = {
// schema details [here](https://tent.io/docs/post-types#meta)
app: {
name: 'Test App',
url: 'http://tent.example.com',
types: {
read: [ 'all' ],
write: [ 'all' ]
}
},
// formated using nodes' `util.format` function. `%s` replaced by the entity to discover
proxy: 'http://discoverproxy.example.com?entity=%s'
}
login(entity, opts, function(err, user) {
if(err) console.error(err)
// `user` is an object containing `auth`, `meta` and `appId` keys
else console.log(user)
})
}
MIT
FAQs
Utility to make Tent logins super easy for web apps.
The npm package tent-login receives a total of 0 weekly downloads. As such, tent-login popularity was classified as not popular.
We found that tent-login 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
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
Security News
Members Hub is conducting large-scale campaigns to artificially boost Discord server metrics, undermining community trust and platform integrity.
Security News
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.