A list of errors that can be thrown by OpenAuth.
You can use these errors to check the type of error and handle it. For example.
import { InvalidAuthorizationCodeError } from "@openauthjs/openauth/error"if (err instanceof InvalidAuthorizationCodeError) { // handle invalid code error} Copy
import { InvalidAuthorizationCodeError } from "@openauthjs/openauth/error"if (err instanceof InvalidAuthorizationCodeError) { // handle invalid code error}
A list of errors that can be thrown by OpenAuth.
You can use these errors to check the type of error and handle it. For example.