@authup/core
Version:
Package containing global constants, types & interfaces.
26 lines • 1.24 kB
TypeScript
import type { Input } from '@ebec/http';
import { BadRequestError } from '@ebec/http';
import { OAuth2TokenKind } from './constants';
import type { OAuth2SubKind } from './constants';
export declare class TokenError extends BadRequestError {
constructor(...input: Input[]);
static subKindInvalid(): TokenError;
static expired(kind?: `${OAuth2TokenKind}`): TokenError;
static kindInvalid(): TokenError;
static notActiveBefore(date?: string | Date): TokenError;
static headerInvalid(message?: string): TokenError;
static payloadInvalid(message?: string): TokenError;
static accessTokenRequired(): TokenError;
static clientInvalid(): TokenError;
static grantInvalid(): TokenError;
static grantTypeUnsupported(): TokenError;
static tokenInvalid(kind?: `${OAuth2TokenKind}`): TokenError;
static tokenNotFound(kind?: `${OAuth2TokenKind}`): TokenError;
static requestInvalid(message?: string): TokenError;
static scopeInvalid(): TokenError;
static redirectUriMismatch(): TokenError;
static responseTypeUnsupported(): TokenError;
static targetInactive(kind: `${OAuth2SubKind}`): TokenError;
static signingKeyMissing(): TokenError;
}
//# sourceMappingURL=error.d.ts.map