ENGLISH·COURSE API
    Preparing search index...

    Type Alias

    AuthDependencies

    Everything the auth configuration depends on, injected so a test can hand it a container database, a real SMTP inbox and a local captcha verifier.

    type AuthDependencies = {
        afterResponse: (work: AfterResponseWork) => void;
        rateLimited: boolean;
    }
    Index

    Properties

    afterResponse: (work: AfterResponseWork) => void

    Runs work once the response is out and keeps the invocation alive until it settles. A bare unawaited promise is not a substitute: a serverless platform suspends the function when the response is sent, and the work is cut off mid-connection.

    rateLimited: boolean

    Rate limiting is for production: parallel e2e sign-ins share one IP (see isAuthRateLimited).