PortalMobileMpcEnclave

constructor(hostUrl: String, http: PortalRequests = PortalRequests())

Parameters

hostUrl

The base URL of the MPC enclave. If it starts with "10.0.2.2", it's treated as a development environment and uses HTTP, otherwise HTTPS is used.

http

The transport every enclave call goes through. Unlike the MPC binary, the enclave's requests are made by the SDK, so a 401 from it is a rejection the SDK can see — but only through the transport that carries it. Portal passes its own, whose onUnauthorized invalidates the credential and fires onSessionInvalidated; a directly-constructed instance gets a transport of its own, and a 401 on it retires nothing.