java.lang.Object
com.irurueta.authserver.authorization.api.web.ott.OttCleanupJob

@Component public class OttCleanupJob extends Object
Scheduled entry point that deletes what one-time tokens leave behind once it expired: the numeric codes, the pending phone verifications, the SMS cost ledger entries past their retention and Spring's expired link tokens. The schedule comes from authserver.ott.cleanup.cron (default every hour, at quarter past). Scheduling itself is enabled once for every feature by SchedulingConfiguration.
  • Field Details

    • cleanupOttUseCase

      private final CleanupOttUseCase cleanupOttUseCase
      Deletes the expired one-time token data.
  • Constructor Details

    • OttCleanupJob

      public OttCleanupJob()
  • Method Details

    • run

      @Scheduled(cron="${authserver.ott.cleanup.cron:0 15 * * * *}") public void run()
      Deletes the expired one-time token data.