Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface FailedAuthAttemptSessionRepository

Repository which holds failed authentication attempts session of the user.

Hierarchy

  • FailedAuthAttemptSessionRepository

Methods

Methods

delete

  • delete(username: string): Promise<void>
  • Delete failed authentication attempts session.
    In case session with username doesn't exist, this needs to be shallowly ignored and operation will be considered successful.

    Parameters

    • username: string

      Account username.

    Returns Promise<void>

read

  • Read failed authentication attempts session.

    Parameters

    • username: string

      Account username.

    Returns Promise<undefined | null | FailedAuthenticationAttemptSession>

    Failed authentication attempts session or null when not found.

upsert

  • Insert/Replaces session.

    Parameters

    • username: string

      Account username.

    • session: FailedAuthenticationAttemptSession

      Failed authentication attempts session.

    • ttl: number

      Session ttl in seconds.
      In case session is already present, when replacing it, ttl needs to be reset too.

    Returns Promise<void>