@hellocoop/api
Version:
Client API for Hellō https://hello.dev
43 lines • 1.34 kB
TypeScript
import { Config, GenericSync, CommandHandler } from '../types';
import { Scope, ProviderHint } from '@hellocoop/definitions';
export interface IConfig {
production: boolean;
sameSiteStrict?: boolean;
error?: string[];
scope?: Scope[];
provider_hint?: ProviderHint[];
routes: {
loggedIn?: string;
loggedOut?: string;
error?: string;
};
cookies: {
authName: string;
oidcName: string;
};
loginSync?: GenericSync;
logoutSync?: GenericSync;
commandHandler?: CommandHandler;
cookieToken?: boolean;
apiRoute: string;
authApiRoute: string;
loginApiRoute: string;
logoutApiRoute: string;
clientId?: string;
host: string | undefined;
redirectURI: string | undefined;
helloDomain: string;
helloWallet: string;
secret?: string;
logDebug?: boolean;
}
declare const _configuration: IConfig;
export declare let isConfigured: boolean;
export declare const configure: (config: Config) => void;
export declare const getConfig: () => Promise<IConfig>;
export declare const getLoginApiRoute: () => string;
export declare const getLogoutApiRoute: () => string;
export declare const getAuthApiRoute: () => string;
export declare const getApiRoute: () => string;
export default _configuration;
//# sourceMappingURL=config.d.ts.map