gypsum
Version:
Simple and easy lightweight typescript server side framework on Node.js.
29 lines (28 loc) • 706 B
TypeScript
import { CorsOptions } from 'cors';
export interface IEmailTransporter {
host?: string;
port?: number;
secure?: boolean;
service?: string;
auth: {
user: string;
pass: string;
};
}
export interface IAuthConfig {
mongodb_url?: string;
cors?: CorsOptions;
namespaces?: string[];
transporter?: IEmailTransporter;
rootUserEmail?: string;
rootUserPassword?: string;
verificationEmailExpiry?: number;
tokenSecret?: string;
tokenExpiry?: number;
supportEmail?: string;
}
export interface IAuthEnvConfig {
dev: IAuthConfig;
prod?: IAuthConfig;
}
export declare const defaultAuthConfig: IAuthConfig;