scotts_auth_client
v1.0.0
Published
Authentication for frontends
Readme
scotts_auth_client
Authentication for frontends
Install
npm install --save scotts_auth_clientUsage
import * as React from 'react'
import {ScottsAuthenticationRenderProp, AuthHook} from 'scotts_auth_client'
function example() {
const {register, login ... } = AuthHook("http://exampe.com/graphql")
}
class Example extends React.Component {
render () {
return (
<ScottsAuthenticationRenderProp serverUrl="http://example.com/graphql">
{({register, login}) => (
whatever
)}
</ScottsAuthenticationRenderProp>
)
}
}License
MIT © OGNeutron
