During enrolling Trusted Devices
import { Cotter } from "react-native-cotter";
class SignUp extends Component {
...
onFinishRegistration = (userID) => {
var cotter = new Cotter(
<API_KEY_ID>,
userID
);
// Enroll device as Trusted Device
cotter.trustedDevice.enrollDevice(
this.onEnrollSuccess,
this.onEnrollError,
(getOAuthToken = true), // π Add this parameter
);
};
...
}Getting and Removing tokens from the Storage
Storing and Removing TokensRenewing Expired Tokens
Renewing Expired TokensLast updated