UNPKG

mongodb-stitch

Version:

[![Join the chat at https://gitter.im/mongodb/stitch](https://badges.gitter.im/mongodb/stitch.svg)](https://gitter.im/mongodb/stitch?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

38 lines (37 loc) 1.18 kB
import { Codec } from "mongodb-stitch-core-sdk"; export interface ProviderConfig { type: string; config?: object; } export declare class ProviderConfigCodec implements Codec<ProviderConfig> { decode(from: any): ProviderConfig; encode(from: ProviderConfig): object; } export declare class Anon implements ProviderConfig { type: string; } export declare class ApiKey implements ProviderConfig { type: "api-key"; } export declare class Userpass implements ProviderConfig { readonly emailConfirmationUrl: string; readonly resetPasswordUrl: string; readonly confirmEmailSubject: string; readonly resetPasswordSubject: string; type: string; config: { confirmEmailSubject: string; emailConfirmationUrl: string; resetPasswordSubject: string; resetPasswordUrl: string; }; constructor(emailConfirmationUrl: string, resetPasswordUrl: string, confirmEmailSubject: string, resetPasswordSubject: string); } export declare class Custom implements ProviderConfig { readonly signingKey: string; type: string; config: { signingKey: string; }; constructor(signingKey: string); }