
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
@immutabl3/gatekey
Advanced tools
Authentication library for gatekey.io
$ npm i @immutabl3/gatekey
Instantiating gatekey takes an options configuration object and returns a promise
import gatekey from '@immutabl3/gatekey';
gatekey({
// prevent redirecting so that we can see the error in catch
redirect: false
})
.then(results => {
// results = {token: '', redirect: fn, payload: {}}
})
.catch(error => {
// the error that occurred when authenticating
});
You can pass these options at instantiation.
gatekey(
// options
{
redirect: false
}
);
gatekey]: what key to store validation value undertrue]: if the page is required to be loaded over 'https'true]: if the page should be redirected on failurefalse]: whether the page should always be validated on load. Default behavior is to randomly retry if the page has already been authenticated43200000]: ms after page when validation is no longer valid. After this duration, the page will be validated on next load. Defaults to 12 hours.0.1]: the percent chance that a validated page load will revalidate. This is to prevent alterations to the store giving permenant access.sessionStore]: the store used to the validation value. This object can be replaced as long as it implements two methods: getItem and setItem with behavior following sessionStore.true]: if the store is unavailble, should gatekey fallback to an in-memory store. Local and session storage may be unavailable in incognito modes.After instantiation, gatekey provides an object.
gatekey()
.then(results => {
// results = {token: '', redirect: fn, payload: {}}
});
Uses fetch and Object.assign. If older browser (or IE 11) support is required, polyfills are available:
FAQs
authentication library for gatekey.io
We found that @immutabl3/gatekey 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
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.