
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
marvin-auth-kit
Advanced tools
This marvin-auth module provides easy implementation with the backend authention module written bij Stijn Van Looy.
Install marvin-auth:
yarn add marvin-auth
All authentication methods are available on the Auth class. Create an auth instance:
// import { Auth } from "marvin-ui-kit";
import { Auth } from "marvin-ui-kit";
export const auth = new Auth({
url: "/auth",
tenant: ‘tenantName’,
});
Now you can have fun with authentication:
auth.login(‘username’, ‘password’);
auth.logout(‘username’, ‘password’);
To ensure all requests are enriched with authentication headers, add these interceptors to your application:
import axios from "axios";
import { auth } from "./services/auth.service";
import history from "./history";
// Request interceptor
axios.interceptors.request.use(async (config) => {
return await auth.requestInterceptor(config);
});
// Response interceptor
axios.interceptors.response.use(
function responseOK(value: any): any {
return value;
},
function responseNOK(error) {
return auth.responseErrorHandler(error, () => {
// handle unauthenticated response
history.push("/login");
});
}
);
FAQs
Javscript authentication kit
The npm package marvin-auth-kit receives a total of 31 weekly downloads. As such, marvin-auth-kit popularity was classified as not popular.
We found that marvin-auth-kit demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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.
Security News
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.