Repository navigation
Replies: 1 comment
|
There isn't a how-to yet because the page isn't switched on. So today it's API only, under
Each step has a 30 minute window. Either side can API tokens can't call these endpoints (they're not on the token route list), so use the logged-in web session. POSTs need the CSRF header the web app sends. From the browser console on your SkillHub tab: const xsrf = decodeURIComponent(document.cookie.match(/XSRF-TOKEN=([^;]+)/)[1])
const post = (path, body) => fetch('/api/v1/account/merge/' + path, {
method: 'POST',
headers: { 'Content-Type': 'application/json', 'X-XSRF-TOKEN': xsrf },
body: JSON.stringify(body),
}).then(r => r.json())
await post('initiate', { secondaryIdentifier: 'github:123456' })Two things to know before you run it (AccountMergeService.java):
|
Uh oh!
There was an error while loading. Please reload this page.
"Account Merging" is a highlight in the README doc, but where can I find further how-to docs on it?
All reactions