UNPKG

autumn-js

Version:
19 lines (16 loc) 562 B
import { Organization } from 'better-auth/plugins'; import { AuthResult } from '../AuthFunction.js'; import { getSessionFromCtx } from 'better-auth/api'; type Session = ReturnType<typeof getSessionFromCtx>; type AutumnOptions = { url?: string; secretKey?: string; customerScope?: "user" | "organization" | "user_and_organization"; identify?: (options: { session: Session; organization?: (Organization & { ownerEmail: string | null; }) | null; }) => AuthResult; }; export type { AutumnOptions, Session };