
Product
Introducing GitHub Actions Scanning Support
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.
@capsulajs/capsulahub-service-auth
Advanced tools
Auth extension allows to use auth0 for authentication logic
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
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.

Product
Add real-time Socket webhook events to your workflows to automatically receive pull request scan results and security alerts in real time.

Research
The Socket Threat Research Team uncovered malicious NuGet packages typosquatting the popular Nethereum project to steal wallet keys.