
Product
Introducing Pull Request Stories to Help Security Teams Track Supply Chain Risks
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.
Auth JS Client for e-city
yarn add auth-js
npm i --save auth-js
const baseURL = 'http://isse.paliari.com.br/app/rest'
const Auth = {
install (Vue, {baseURL}) {
const auth = AuthJs({appModule: 'nfse', baseURL, statusBar: 'darken'})
Vue.prototype.$auth = auth
Vue.auth = auth
}
}
Vue.use(Auth, {baseURL})
All methods return the Promise instance.
this.$auth.signIn().then( response => {
// the response contains token and usuario e.g: {token: {...}, usuario: {...}}
console.log('success', response)
})
.catch( e => {
console.log('error', e)
})
Sign out current session of user.
this.$auth.signOut().then( response => {
console.log('success', response)
})
.catch( e => {
console.log('error', e)
})
Update current passowrd of user.
this.$auth.updatePassword().then( response => {
console.log('success', response)
})
.catch( e => {
console.log('error', e)
})
Update account of user.
this.$auth.account().then( response => {
console.log('success', response)
})
.catch( e => {
console.log('error', e)
})
Change image of perfil the user.
this.$auth.image().then( response => {
console.log('success', response)
})
.catch( e => {
console.log('error', e)
})
Update address of user.
this.$auth.address().then( response => {
console.log('success', response)
})
.catch( e => {
console.log('error', e)
})
Insert/Remove modules of user.
this.$auth.modules().then( response => {
console.log('success', response)
})
.catch( e => {
console.log('error', e)
})
Get current user.
this.$auth.current().then( response => {
console.log('success', response)
})
.catch( e => {
console.log('error', e)
})
This project is licensed under MIT License
FAQs
Auth JS Client for e-city
The npm package auth-js receives a total of 20 weekly downloads. As such, auth-js popularity was classified as not popular.
We found that auth-js demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers 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.
Product
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.
Research
/Security News
npm author Qix’s account was compromised, with malicious versions of popular packages like chalk-template, color-convert, and strip-ansi published.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.