
Product
Announcing Socket Certified Patches: One-Click Fixes for Vulnerable Dependencies
A safer, faster way to eliminate vulnerabilities without updating dependencies
@capsulajs/capsulahub-service-auth
Advanced tools
The purpose of this service is to provide a utility tool that allows user to implement authentication logic using auth0 service.
Take a look at Lock.js documentation in order to get the whole list of lockOptions.
// You should call init as soon as possible in order to get the current auth status of a user
// If you call login method before init, login popup will not be shown until init resolves
authService.init({}).then((authStatusDataAfterInit) => {
if (!authStatusDataAfterInit.token) {
return authStatusDataAfterInit.login({}).then((authStatusDataAfterLogin) => {
console.info(authStatusDataAfterLogin);
})
}
});
To install the package from NPM registry you should run
yarn add @capsulajs/capsulahub-service-auth
or
npm install @capsulajs/capsulahub-service-auth
You can get the default export from the link
https://capsulajs.s3.amazonaws.com/develop/capsulahub-service-auth/index.js
{
"services": [
{
"serviceName": "AuthService",
"path": "https://capsulajs.s3.amazonaws.com/develop/capsulahub-service-auth/index.js",
"definition": {
"serviceName": "AuthService",
"methods": {
"init": { "asyncModel": "requestResponse" },
"login": { "asyncModel": "requestResponse" },
"logout": { "asyncModel": "requestResponse" },
"authStatus$": { "asyncModel": "requestStream" }
}
},
"config": {
"serviceName": "AuthService",
"domain": "dev-f8nw441q.auth0.com",
"clientId": "RS6FSurmbVq9B31sJ57Px4NZpcdyCnHQ"
}
}
]
}
Bootstrap function of the extension.
The public API of the extension.
The documentation about public API.
Run
yarn doc
And open doc/index.html in browser.
npm run test or yarn test
CapsulaHub and related services are released under MIT Licence.
FAQs
Auth extension allows to use auth0 for authentication logic
We found that @capsulajs/capsulahub-service-auth demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 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
A safer, faster way to eliminate vulnerabilities without updating dependencies

Product
Reachability analysis for Ruby is now in beta, helping teams identify which vulnerabilities are truly exploitable in their applications.

Research
/Security News
Malicious npm packages use Adspect cloaking and fake CAPTCHAs to fingerprint visitors and redirect victims to crypto-themed scam sites.