Authenticate from a Non-Trusted Device
Steps
Step 1: Check if this device is a Trusted Device
componentDidMount() {
var cotter = new Cotter(
API_KEY_ID,
userID,
);
this.cotter = cotter;
this.checkIfThisDeviceTrusted();
}
checkIfThisDeviceTrusted = () => {
this.cotter.trustedDevice
.trustedDeviceEnrolled()
.then(trusted => {
// trusted = True or False
this.setState({trusted: trusted});
})
.catch(err => console.log(err));
};Step 2: Show the QR Code of the New Device
Step 3: Scan the QR Code from a Trusted Device
Setup Permission to Allow Camera
Android
Scan the QR Code
Last updated