$params Raw GET/POST parameters from the callback request. * @throws \RuntimeException On invalid state, an insecure or failed exchange, or a malformed payload. */ public function handleCallback( array $params ): ConnectedSource; /** * Refreshes the access token for a source. * * When a refresh requires the app secret, this calls the relay's refresh * endpoint; the secret stays on the relay. * * @throws \Feednetic\Core\Exception\AuthExpiredException If the token cannot be refreshed. */ public function refreshToken( SourceConfig $config ): Token; }