1.0.5 • Published 3 years ago

@dd3-tech/auth0-env-lock v1.0.5

Weekly downloads
-
License
ISC
Repository
gitlab
Last release
3 years ago

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!!

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago