1.0.6 • Published 3 years ago

sawo-react v1.0.6

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

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}/>
1.0.6

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago