Skip to main content

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: The authToken is invalid or has expired.
  • 500 Internal Server Error: An unexpected server error occurred.