sawo-react
v1.0.6
Published
React component for sawo login
Downloads
39
Readme
How to integrate
import the component
import SawoLogin from 'sawo-react'
Define a callback function
function sawoLoginCallback(payload) {
console.log(payload)
}
Make a config object
const sawoConfig = {
onSuccess: sawoLoginCallback //required,
identifierType: 'email' //required, must be one of: 'email', 'phone_number_sms',
apiKey: '' // required, get it from sawo dev.sawolabs.com,
containerHeight: '230px', // the login container height, default is 230px
}
Add the component
<SawoLogin config={sawoConfig}/>