
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
OAuth2 session manager
This package supports/uses only the password and refresh flow!
Install all dependencies:
npm install
Build:
npm run build
import { AuthConfig } from "kogitte";
AuthConfig.init({
// Required
clientId: "clientId",
tokenUrl: "tokenUrl",
logoutUrl: "logoutUrl",
// Optional
localStorageKey: "localStorageKey",
onSessionExpire: () => { ... }
});
Login:
Requests the access and the refresh token from the configured token URL and saves this data in the local storage.
import { UserSessionManager } from "kogitte";
new UserSessionManager().login("username", "password", "optional captcha response");
Optionally a captcha response can be provided. This data is sent with the login in the captcha parameter.
Logout:
Sends an authorized POST request to the configured URL and removes afterwards the session in the local storage.
import { UserSessionManager } from "kogitte";
new UserSessionManager().logout("optional data");
Optionally data can be provided. This data is sent in the request body.
Get current session:
Gets the data from the local storage and checks if the access token is still valid. Is this not the case, a refresh attempt is made. If this fails the saved session gets removed. Is the token still valid or the refreshment succeeded, the current session gets returned.
import { UserSessionManager } from "kogitte";
new UserSessionManager().getCurrentSession();
Session exists:
Checks if a session is stored in the local storage.
import { UserSessionManager } from "kogitte";
new UserSessionManager().sessionExists();
FAQs
OAuth2 session manager
The npm package kogitte receives a total of 2 weekly downloads. As such, kogitte popularity was classified as not popular.
We found that kogitte 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.