Hm weird that the error code from us is not there.
Let us work on the "Errors.OIDCSession.RefreshTokenInvalid" this indicates that something is amiss with the refreshtoken.
You use the same client_id for the call the gets the refresh_token and the call that wants to refresh the token I assume, right?