Auth0EnvLock
Library to implement authorization request to see the content.
Basic usage
Import styles as global styles
import '@dd3-tech/auth0-env-lock/dist/styles.min.css'
Import Auth0EnvLock component and wrap your entire app
import Auth0EnvLock from '@dd3-tech/auth0-env-lock'.
function MyApp() {
return (
<Auth0EnvLock>
...
</Auth0EnvLock>
)
}
Set the name of your app in the label
prop and the Auth0 config in the config
prop.
import Auth0EnvLock from '@dd3-tech/auth0-env-lock'.
const auth0Config = {
domain: '...',
clientID: '...'
}
function MyApp() {
return (
<Auth0EnvLock
label="DD3 App"
config={auth0Config}>
...
</Auth0EnvLock>
)
}
Ready!!