expo-passkey
Version:
Passkey authentication for Expo apps with Better Auth integration
24 lines • 935 B
TypeScript
/**
* @file Cleanup utility for outdated passkeys
* @description Handles cleanup of inactive passkeys
*/
import type { AuthContext } from "better-auth/types";
import type { ResolvedSchemaConfig } from "../../types";
import type { Logger } from "./logger";
export interface CleanupOptions {
/**
* Number of days after which inactive passkeys are revoked
*/
inactiveDays?: number;
/**
* Disable the interval for automatically cleaning up inactive passkeys.
* Set to true for serverless environments.
* When true, cleanup will still run once on startup but not continuously.
*/
disableInterval?: boolean;
}
/**
* Initializes the cleanup job for inactive passkeys
*/
export declare const setupCleanupJob: (ctx: AuthContext, options: CleanupOptions | undefined, logger: Logger, schemaConfig: ResolvedSchemaConfig) => NodeJS.Timeout | null | undefined;
//# sourceMappingURL=cleanup.d.ts.map