Skip to content
Myr

attempts.ts

This file

Path

apps/platform/src/auth/attempts.ts

15 lines · 390 bytes · TypeScript

Last changed by

Merge build/comments-platform into mainoscabrielbefore adoptionddf09e8

History of this file

Take it

The walk stopped after 200 commits: lines older than 678c8b8 point at it.

Merge build/614-env-service: deciders set write-only values for @sensitive items, the public sees the env shape, and checks see only placeholdersoscabrielbefore adoption678c8b8

lines 1–3why, one step back
1import { Context, Duration } from "effect";
2import type { Effect } from "effect";3

Merge build/comments-platform into mainoscabrielbefore adoptionddf09e8

line 4why, one step back
4// Mirrors `SIGN_IN_LIMIT` in wrangler.jsonc.

Merge build/614-env-service: deciders set write-only values for @sensitive items, the public sees the env shape, and checks see only placeholdersoscabrielbefore adoption678c8b8

lines 5–15why, one step back
5export const AttemptPolicy = {
6 limit: 5,7 period: Duration.minutes(1),8} as const;910export class SignInAttempts extends Context.Service<11 SignInAttempts,12 {13 readonly admit: (key: string) => Effect.Effect<boolean>;14 }15>()("platform/SignInAttempts") {}