1.1.2 • Published 4 years ago
ibf-auth-hoc v1.1.2
ibf-auth-hoc
Authentication wrapper library for ibf
Install
npm install --save ibf-auth-hoc
yarn add ibf-auth-hoc
Usage
import * as React from 'react'
import Auth from 'ibf-auth-hoc'
class Example extends React.Component {
render () {
return (
<Auth onError={() => ()}>
onSuccess={(response) => {
...
}}
<>
...
</>
</Auth>
)
}
}
License
MIT © caberrio