videosphere
    Preparing search index...

    Function isForgotPasswordRateLimited

    • Returns whether a user has exceeded the forgot-password rate limit.

      Parameters

      • userId: string

        Target user id.

      • now: Date = ...

        Reference time for the sliding window.

      Returns Promise<boolean>

      True when no additional forgot-password tokens should be issued.