Error Handling
Client-Side Errors
Errors encountered when calling opjs() can be handled using the catch method of the Promise.
opjs()
.then(fp => {
// Handle fingerprint
})
.catch(error => {
console.error('opjs Error:', error);
});
Verification Errors
When verifying the authToken, you may encounter HTTP errors:
404 Not Found: TheauthTokenis invalid or has expired.500 Internal Server Error: An unexpected server error occurred.