Class EtaAuthService

java.lang.Object
energy.eddie.regionconnector.de.eta.auth.EtaAuthService

@Service public class EtaAuthService extends Object
  • Constructor Details

  • Method Details

    • exchangeCodeForToken

      public reactor.core.publisher.Mono<AuthTokenResponse> exchangeCodeForToken(String code, String openid)
    • refresh

      public reactor.core.publisher.Mono<AuthTokenResponse> refresh(String refreshToken)
      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.