@nestjs-mod/sso
Version:
NestJS SDK for Single Sign-On on NestJS and Angular with webhooks and social authorization (Wrapper for https://www.npmjs.com/package/@nestjs-mod/sso-rest-sdk)
13 lines (12 loc) • 404 B
TypeScript
export declare enum SsoErrorEnum {
COMMON = "SSO-000",
FORBIDDEN = "SSO-001",
UNAUTHORIZED = "SSO-002"
}
export declare const SSO_ERROR_ENUM_TITLES: Record<SsoErrorEnum, string>;
export declare class SsoError<T = unknown> extends Error {
message: string;
code: SsoErrorEnum;
metadata?: T;
constructor(message?: string | SsoErrorEnum, code?: SsoErrorEnum | T, metadata?: T);
}