-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
68e72ce
commit 41cea19
Showing
2 changed files
with
14 additions
and
2 deletions.
There are no files selected for viewing
3 changes: 2 additions & 1 deletion
3
src/main/java/com/noplanb/domain/auth/repository/TokenRepository.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,15 @@ | ||
package com.noplanb.domain.auth.repository; | ||
|
||
import com.noplanb.domain.auth.domain.Token; | ||
import com.noplanb.domain.user.domain.User; | ||
import org.springframework.data.jpa.repository.JpaRepository; | ||
import org.springframework.stereotype.Repository; | ||
|
||
import java.util.Optional; | ||
|
||
@Repository | ||
public interface TokenRepository extends JpaRepository<Token, Long> { | ||
Optional<Token> findByEmail(String email); | ||
Token findByEmail(String email); | ||
Optional<Token> findByRefreshToken(String refreshToken); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters