import { betterAuth } from 'better-auth'; import { BetterAuthConfig } from '../types/index.js'; /** * Builds Better Auth configuration with social providers and cookies. */ type MagicLinkSender = (params: { email: string; token: string; url: string; }) => Promise; type ResetPasswordSender = (params: { email: string; token: string; url: string; }) => Promise; type AuthOptions = { adapter?: unknown; magicLinkSender?: MagicLinkSender; resetPasswordSender?: ResetPasswordSender; }; /** * Better Auth `before` hook handler: forces `revokeOtherSessions: true` onto the * `/change-password` request body so a password change always revokes the user's * other sessions (the acting session keeps a freshly issued token). Other paths * pass through unchanged. Extracted from the config for unit testing. */ export declare function forceRevokeOtherSessionsOnChangePassword(ctx: { path: string; body?: unknown; }): { context: { body: Record; }; } | undefined; export declare function createBetterAuthConfig(config: BetterAuthConfig, options?: AuthOptions): Promise>; export {}; //# sourceMappingURL=idp-better-auth-config.d.ts.map