fix(auth): override Better Auth sign-in rate limit defaults #383

Closed
groombook-engineer[bot] wants to merge 5 commits from fix/gro-1021-auth-rate-limit into dev
Showing only changes of commit 57fe69eaf7 - Show all commits
+11 -5
View File
@@ -96,12 +96,15 @@ export async function initAuth(): Promise<void> {
max: 100,
window: 10,
storage: "memory",
customRules: {
"/get-session": false,
},
customRules: {
"/sign-in/social": { max: 10, window: 60 },
"/sign-in/email": { max: 10, window: 60 },
"/sign-up/email": { max: 5, window: 60 },
"/get-session": false,
},
plugins: [
genericOAuth({
},
plugins: [
genericOAuth({
config: [
{
providerId: "authentik",
@@ -247,6 +250,9 @@ export async function initAuth(): Promise<void> {
window: 10,
storage: "memory",
customRules: {
"/sign-in/social": { max: 10, window: 60 },
"/sign-in/email": { max: 10, window: 60 },
"/sign-up/email": { max: 5, window: 60 },
"/get-session": false,
},
},