@invenso/security-provider
v1.0.2
Published
React security component for roles and permissions
Downloads
61
Readme
@invenso/security-provider
React security component for roles and permissions
Install
npm install --save @invenso/security-provider
Usage
import React, { Component } from 'react'
import { SecureComponent, SecurityProvider} from '@invenso/security-provider'
class Example extends Component {
render() {
return <SecurityProvider permissions={permissions} roles={roles} />
}
}
class Example extends Component {
render() {
return <SecureComponent permissions={['CREATE_USER']} />
}
}
License
MIT © Invenso