Skip to content

Instantly share code, notes, and snippets.

public class TokenCache {
private String token;
private LocalDateTime expire;
private String getToken(){
if(token==null
|| LocalDateTime.now().compareTo(expire)>0){
refreshToken();