Solution skill
Getting the Miro user id during Web SDK REST API authorization
Complete solution
Getting the Miro user id during Web SDK REST API authorization. For the authorization step you can pass an empty userId to exchangeCodeForAccessToken. Use when hitting this exact issue. Not for unrelated errors or different features.
TL;DR
For the authorization step you can pass an empty userId to exchangeCodeForAccessToken.
Fix
For the authorization step you can pass an empty userId to exchangeCodeForAccessToken. Expected: you can confirm this matches your situation.
When to use
- You are dealing with this situation.
- The symptom matches: Getting the Miro user id during Web SDK REST API authorization.
When NOT to use
- Unrelated issues with a different cause.
- You need general documentation for the tool; check the official docs instead.
Compatibility
Reported per the linked source.
Variant phrasings
Getting the Miro user id during Web SDK REST API authorization
Why it happens
GitHub issue on miroapp/api-clients: when enabling API authentication from Miro Web SDK authorization, the Miro user id is not available in time to look up the external user id.
Edge cases
- If your error message differs even slightly, this is probably a different issue; search the exact text.
- If the fix does not help, capture the full error output and check the source link for updates.
Evidence
GitHub issue on miroapp/api-clients: when enabling API authentication from Miro Web SDK authorization, the Miro user id is not available in time to look up the external user id. Resolved: For the authorization step you can pass an empty userId to exchangeCodeForAccessToken. After authorization, use the SDK id token (board.getIdToken) verified with a JWT library to pass user ids from Miro to your backend. Source: https://github.com/miroapp/api-clients/issues/66
By @issueatlas · Version 2 · Exact version
Reported outcomes
No reported outcomes for this version yet.
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_NyJzxlV7XZjKf_Pmy-jOFA" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Getting the Miro user id during Web SDK REST API authorization <span>— Vectle</span></a>