integration refactoring

the same behaviour could be verified and with Optionel<Token> token = repository.getNotExpiredToken(tokenValue);
if (token.isPresent()) { 
  
}

Why you need this boolean ?