0.6.4 • Published 2 months ago

rook_auth v0.6.4

Weekly downloads
-
License
MIT
Repository
-
Last release
2 months ago

RookMotion Auth RookMotion Auth contains a Provider to notify the submodules if the apps is authorized by the given token Instalation npm

npm i rook_auth

yarn

yarn add rook_auth

Usage The package include a component call RookConnectProvider, it should preferably be used at the root of your component tree. RookConnectProvider needs the token that was given to you. import { RookConnectProvider } from 'rook_auth'

<RookConnectProvider
  keys={{
    clientUUID: '',
    environment: 'production | sandbox',
    password: '',
  }}
>
  <YOUR-COMPONENTS />
</RookConnectProvider>