const pc = new RTCPeerConnection();
// …
async function getIdentityProvider() {
try {
const identity = await pc.peerIdentity;
console.log(`Identity provider: ${identity.idp}`);
} catch (err) {
console.error("Failed to get peer identity:", err);
}
}
getIdentityProvider();RTCIdentityAssertion: idp property / notebook
RTCIdentityAssertion: idp property
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.