Research
Security News
Malicious PyPI Package ‘pycord-self’ Targets Discord Developers with Token Theft and Backdoor Exploit
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
@clevertech.biz/auth-core
Advanced tools
The set of utilities necessary to build an authentication service. This does not include templates, views, styles, or transport layer.
Generic auth library for Clevertech.
You have to run the tests with node v10
or newer
clients.
docker-compose -f test/docker-compose.yml up -d
npm run test
import {
Core,
KnexAdapter,
MongoAdapter,
DefaultEmailService,
Crypto,
JWT,
Validations,
TwilioSMSService
} from '@clevertech.biz/auth-core'
const db = new MongoAdapter('<uri>')
const db = new KnexAdapter({
// knex config here
})
const sms = new TwilioSMSService(
'<accountSid>',
'<authToken>',
'<numberFrom>'
})
const core = new Core({
projectName: '<projectName>',
db,
email: new DefaultEmailService({
projectName: '',
confirmEmailURL: '',
requestResetPasswordURL: '',
resetPasswordURL: '',
emailServiceConfig: {
// config for pnp-email-service
}
}),
crypto: new Crypto('<key>', '<algorithm> = aes-256-gcm'),
jwt: new JWT('<algorithm>', '<secretOrPrivateKey>', '<secretOrPublicKey>', {
// default options: see https://github.com/auth0/node-jsonwebtoken#usage
}),
validations: new Validations(['name', 'company'], true),
sms,
numberOfRecoverCodes: 10
})
FAQs
The set of utilities necessary to build an authentication service. This does not include templates, views, styles, or transport layer.
The npm package @clevertech.biz/auth-core receives a total of 3 weekly downloads. As such, @clevertech.biz/auth-core popularity was classified as not popular.
We found that @clevertech.biz/auth-core 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.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.
Security News
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.