13 lines
368 B
TypeScript
13 lines
368 B
TypeScript
import type { BetterAuthPlugin } from "better-auth";
|
|
import { haveIBeenPwned, openAPI } from "better-auth/plugins";
|
|
import type { Env } from "./env";
|
|
|
|
export function createAuthPlugins(_env: Env): BetterAuthPlugin[] {
|
|
return [
|
|
openAPI(),
|
|
haveIBeenPwned({
|
|
customPasswordCompromisedMessage: "This password has appeared in a data breach.",
|
|
}),
|
|
];
|
|
}
|