Compare commits
No commits in common. "ec48f73d9f6feb46385f7c20716662aa5eb1d6d5" and "b9d752ac55376d3a6263bf60582d5ae7b9c3b87b" have entirely different histories.
ec48f73d9f
...
b9d752ac55
@ -25,10 +25,6 @@ public class HelloAssoTokenService {
|
||||
|
||||
// Récupère un token valide (en le rafraîchissant si nécessaire)
|
||||
public Uni<String> getValidAccessToken() {
|
||||
if (clientId == null || clientSecret == null || clientId.isEmpty() || clientSecret.isEmpty()) {
|
||||
LOG.error("Client ID ou Client Secret non configuré pour HelloAsso");
|
||||
return Uni.createFrom().failure(new IllegalStateException("HelloAsso client credentials not configured"));
|
||||
}
|
||||
if (currentToken == null || currentToken.isExpired()) {
|
||||
return fetchNewToken(clientId, clientSecret);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user