Namespace OpenAuthError

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
}

Classes

InvalidAccessTokenError
InvalidAuthorizationCodeError
InvalidRefreshTokenError
InvalidSubjectError
MissingParameterError
MissingProviderError
OauthError
UnauthorizedClientError
UnknownStateError