Skip to content

Instantly share code, notes, and snippets.

View PradoGuilherme's full-sized avatar
🌎
Working from anywhere

Guilherme Prado PradoGuilherme

🌎
Working from anywhere
View GitHub Profile
@saniaky
saniaky / TokenController.java
Last active February 3, 2021 15:53
How to logout (revoke token + refresh token) user in Spring Security using OAuth 2.0
@Controller
public class TokenController {
private final TokenStore tokenStore;
@Autowired
public TokenController(TokenStore tokenStore) {
this.tokenStore = tokenStore;
}