
Research
Supply Chain Attack on Axios Pulls Malicious Dependency from npm
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.
react-liff-v2
Advanced tools
A react context provider for LIFF (LINE Front-end Framework)
npx create-react-app app-namereact-liff to your app dependencies.
npm i --save @line/liff react-liff
# or
yarn add @line/liff react-liff
react-liff to your app and use it!
import React, { useEffect, useState } from 'react';
import { useLiff } from 'react-liff';
import './App.css';
const App = () => {
const [displayName, setDisplayName] = useState('');
const { error, liff, isLoggedIn, ready } = useLiff();
useEffect(() => {
if (!isLoggedIn) return;
(async () => {
const profile = await liff.getProfile();
setDisplayName(profile.displayName);
})();
}, [liff, isLoggedIn]);
const showDisplayName = () => {
if (error) return <p>Something is wrong.</p>;
if (!ready) return <p>Loading...</p>;
if (!isLoggedIn) {
return <button className="App-button" onClick={liff.login}>Login</button>;
}
return (
<>
<p>Welcome to the react-liff demo app, {displayName}!</p>
<button className="App-button" onClick={liff.logout}>Logout</button>
</>
);
}
return (
<div className="App">
<header className="App-header">{showDisplayName()}</header>
</div>
);
}
export default App;
import React from 'react';
import ReactDOM from 'react-dom';
import { LiffProvider } from 'react-liff';
import './index.css';
import App from './App';
const liffId = process.env.REACT_APP_LINE_LIFF_ID;
const stubEnabled = process.env.NODE_ENV !== 'production';
ReactDOM.render(
<React.StrictMode>
<LiffProvider liffId={liffId} stubEnabled={stubEnabled}>
<App />
</LiffProvider>
</React.StrictMode>,
document.getElementById('root')
);
npx create-react-app app-namereact-liff to your app dependencies.
npm i --save react-liff
# or
yarn add react-liff
index.html to load LIFF SDK
+ <script defer charset="utf-8" src="https://static.line-scdn.net/liff/edge/2/sdk.js"></script>
react-liff to your app and use it!liffId: string, required
stubEnabled: boolean | Object | undefined, optional
false or undefined: Provider uses LIFF SDK (for Production).true: Provider uses stubs defined in library.Object: Provider uses the stubs you specified here.error: LiffError | undefined
liff.init() failed.isLoggedIn: boolean
ready: boolean
true after liff.init() or stub setup has successfully completed.liff: Liff
FAQs
A react context provider for LIFF (LINE Front-end Framework)
The npm package react-liff-v2 receives a total of 0 weekly downloads. As such, react-liff-v2 popularity was classified as not popular.
We found that react-liff-v2 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.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.

Security News
TeamPCP is partnering with ransomware group Vect to turn open source supply chain attacks on tools like Trivy and LiteLLM into large-scale ransomware operations.