
Research
Security News
Lazarus Strikes npm Again with New Wave of Malicious Packages
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
react-redux-oauth2
Advanced tools
Redux OAuth Component, server rendering supported
import {reducer} from 'react-redux-oauth2'
combineReducers(
// ... your reducers
oauth: reducer
);
import { actions, reducer, signin, signout } from 'react-redux-oauth2'
class YourComponent extends React.Component {
componentWillMount () {
const { dispatch } = this.props
dispatch(actions.config({
client_id: 'YOUR client id',
client_secret: 'YOUR client secret',
url: 'http://localhost:5000/api', // your oauth server root
providers: {
github: '/auth/github' // provider path
}
}))
}
async handlesignin (e) {
const { dispatch } = this.props
e.preventdefault()
await dispatch(actions.signin({
username: this.refs.username.value,
password: this.refs.password.value
}))
}
render () {
const { oauth } = this.props
const Signin = signin({
popup: {}, // popup settings
success () {}, // invoke when signin success
failed () {}, // invoke when signin failed
cancel () {} // invoke when signin cancel
})(props => <button {...props} />)
const Signout = singout()(props => <button {...props} />)
return (
<div>
<form onSubmit={this.handleSignin.bind(this)}>
<input type='text' name='username' ref='username' placeholder='username' />
<input type='text' name='password' ref='password' placeholder='password' />
<button type='submit' disabled={oauth.authenticating}>Signin</button>
</form>
<hr />
<Signin provider='github'>Signin</Signin>
<hr />
<Signout>Signout</Signout>
</div>
)
}
}
For a full runable example see ./demo/src
npm start
http://localhost:3000 for debug
FAQs
react-redux-oauth2 React component
The npm package react-redux-oauth2 receives a total of 4 weekly downloads. As such, react-redux-oauth2 popularity was classified as not popular.
We found that react-redux-oauth2 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
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.
Security News
Opengrep continues building momentum with the alpha release of its Playground tool, demonstrating the project's rapid evolution just two months after its initial launch.