scheduling
This commit is contained in:
@@ -21,6 +21,10 @@ class TokenService(private val tokenRepository: TokenRepo) {
|
||||
return tokenRepository.save(newToken)
|
||||
}
|
||||
|
||||
fun getToken(token: String): Mono<Token> {
|
||||
return tokenRepository.findByToken(token)
|
||||
}
|
||||
|
||||
@CacheEvict("tokens", allEntries = true)
|
||||
fun revokeToken(token: String): Mono<Void> {
|
||||
return tokenRepository.findByToken(token)
|
||||
|
||||
Reference in New Issue
Block a user