Interface EmailTokenRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<EmailToken,,Long> org.springframework.data.jpa.repository.JpaRepository<EmailToken,,Long> org.springframework.data.repository.ListCrudRepository<EmailToken,,Long> org.springframework.data.repository.ListPagingAndSortingRepository<EmailToken,,Long> org.springframework.data.repository.PagingAndSortingRepository<EmailToken,,Long> org.springframework.data.repository.query.QueryByExampleExecutor<EmailToken>,org.springframework.data.repository.Repository<EmailToken,Long>
public interface EmailTokenRepository
extends org.springframework.data.jpa.repository.JpaRepository<EmailToken,Long>
-
Method Summary
Modifier and TypeMethodDescriptionfindByToken(String token) Lookup by SHA-256 hash (the raw token is never stored).The user's tokens that were never consumed (to invalidate on resend).Methods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, saveMethods inherited from interface org.springframework.data.jpa.repository.JpaRepository
deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, flush, getById, getOne, getReferenceById, saveAllAndFlush, saveAndFlushMethods inherited from interface org.springframework.data.repository.ListCrudRepository
findAll, findAllById, saveAllMethods inherited from interface org.springframework.data.repository.ListPagingAndSortingRepository
findAllMethods inherited from interface org.springframework.data.repository.PagingAndSortingRepository
findAllMethods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor
count, exists, findAll, findBy, findOne
-
Method Details
-
findByToken
Lookup by SHA-256 hash (the raw token is never stored). -
findByUserAndUsedAtIsNull
The user's tokens that were never consumed (to invalidate on resend).
-