Interface ExpiredLinkTokenPurger


public interface ExpiredLinkTokenPurger
Port that removes the expired magic-link tokens. The tokens are kept by Spring Security's one-time-token service, a framework type the application layer must not use, so the persistence adapter implements this port over the one_time_tokens table.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Deletes the tokens that expired at or before an instant.
  • Method Details

    • deleteExpired

      int deleteExpired(Instant now)
      Deletes the tokens that expired at or before an instant.
      Parameters:
      now - the current instant.
      Returns:
      the number of tokens deleted.