New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

react-lock

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-lock

react-lock ============

latest
npmnpm
Version
0.0.3
Version published
Maintainers
1
Created
Source

react-lock

Usage

<Authenticate clientID="..." domain="....au.auth0.com" options={...lockOptions}>
  <App />
</Authenticate>

class App extends Component {
  static contextTypes = {
    token: PropTypes.string, // auth0 token
    profile: PropTypes.object, // auth0 profile object
    logIn: PropTypes.func, // lock.show
    logOut: PropTypes.func, // clear auth details
    loggedIn: PropTypes.bool // check if you're logged in
  }
  render(){
    // use context objects
  }
}

Setup

Your webpack config will unfortunatley also need these loaders

  {
    test: /node_modules[\\\/]auth0-lock[\\\/].*\.js$/,
    loaders: [
      'transform-loader/cacheable?brfs',
      'transform-loader/cacheable?packageify'
    ]
  }, {
    test: /node_modules[\\\/]auth0-lock[\\\/].*\.ejs$/,
    loader: 'transform-loader/cacheable?ejsify'
  }, {
    test: /\.json$/,
    loader: 'json-loader'
  }

FAQs

Package last updated on 29 Jun 2016

Did you know?

Socket

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.

Install

Related posts