Checks that the McDonald's app bridge returns the logged-in user.
window.mcd
Checking
mcd.bridge.message
Checking
{ getuser: true }
Waiting
—
mcd does not exist and the first check will fail.If the first check fails inside the app, the bridge may need to be loaded separately. Please let us know how other bridge apps load it.
The same call as fetchBridgeUser() in the bridge interface docs:
const userMsg = mcd.bridge.message("user");
userMsg.send({ getuser: true });
userMsg.on("data", (data) => { /* shown above */ });
userMsg.on("error", (err) => { /* shown above */ });