UNPKG

webpods

Version:

Append-only log service with OAuth authentication

33 lines 1.05 kB
/** * OAuth provider configuration using config.json */ import { Client } from "openid-client"; import { OAuthProviderConfig as ConfigProvider } from "../config-loader.js"; export interface OAuthProviderConfig extends ConfigProvider { redirectUri: string; } /** * Load OAuth provider configurations from config.json */ export declare function loadProviderConfigs(): Map<string, OAuthProviderConfig>; /** * Get or create OAuth client for a provider */ export declare function getOAuthClient(providerId: string): Promise<Client>; /** * Get list of configured OAuth providers */ export declare function getConfiguredProviders(): string[]; /** * Check if a provider is configured */ export declare function isProviderConfigured(providerId: string): boolean; /** * Get provider configuration */ export declare function getProviderConfig(providerId: string): OAuthProviderConfig | undefined; /** * Get default OAuth provider */ export declare function getDefaultProvider(): string | undefined; //# sourceMappingURL=oauth-config.d.ts.map