Class EtaAuthService
java.lang.Object
energy.eddie.regionconnector.de.eta.auth.EtaAuthService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<AuthTokenResponse> exchangeCodeForToken(String code, String openid) reactor.core.publisher.Mono<AuthTokenResponse> Exchanges a stored refresh token for a fresh access token.
-
Constructor Details
-
EtaAuthService
-
-
Method Details
-
exchangeCodeForToken
public reactor.core.publisher.Mono<AuthTokenResponse> exchangeCodeForToken(String code, String openid) -
refresh
Exchanges a stored refresh token for a fresh access token. Used by handlers that hit a 401 on a one-shot fetch and want to recover without forcing the customer to re-consent. The returned tokens are intended for in-flight use only — callers are responsible for deciding whether to persist them.
-