package com.kamco.cd.training.postgres.repository.members;

import com.kamco.cd.training.postgres.entity.AuthRefreshTokenEntity;
import java.time.ZonedDateTime;
import java.util.Optional;

public interface AuthRefreshTokenRepositoryCustom {
  Optional<AuthRefreshTokenEntity> findBySubject(String subject);

  Optional<AuthRefreshTokenEntity> findBySubjectAndRevokedDttmIsNullAndExpiresDttmAfter(
      String subject, ZonedDateTime now);
}
