1 | import { GraphQLSchema } from "graphql";
|
2 | import { StrategyCollection } from "./StrategyCollection";
|
3 | import { Strategy } from "./Strategy";
|
4 | export interface Config {
|
5 | readonly realm: string;
|
6 | readonly base: string;
|
7 | readonly privateKey: string;
|
8 | readonly publicKeys: string[];
|
9 | readonly codeValidityDuration: number;
|
10 | readonly jwtValidityDuration: number;
|
11 | readonly strategies: StrategyCollection | Strategy[];
|
12 | readonly pg: {
|
13 | readonly database?: string;
|
14 | readonly host?: string;
|
15 | readonly idleTimeoutMillis?: number;
|
16 | readonly max?: number;
|
17 | readonly password?: string;
|
18 | readonly port?: number;
|
19 | readonly ssl?: boolean;
|
20 | readonly user?: string;
|
21 | };
|
22 | readonly sendMail: (options: {
|
23 | readonly to: string;
|
24 | readonly subject: string;
|
25 | readonly text: string;
|
26 | readonly html: string;
|
27 | readonly from?: string;
|
28 | }) => Promise<any>;
|
29 | readonly processSchema?: (schema: GraphQLSchema) => GraphQLSchema;
|
30 | }
|
31 | export declare function assertConfig(config: Config): void;
|