react-lock
Usage
<Authenticate clientID="..." domain="....au.auth0.com" options=...lockOptions> <App /></Authenticate>
static contextTypes = token: PropTypesstring // auth0 token profile: PropTypesobject // auth0 profile object logIn: PropTypesfunc // lock.show logOut: PropTypesfunc // clear auth details loggedIn: PropTypesbool // check if you're logged in { // 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'