POST /signins/sign-in-now/finish
Reads the cookies after a person signed in, saves the sign-in and closes the tab.
Details #
Body: {"name": "GitHub", "tabId": 12, "browser": "chrome", "url": "https://github.com/"}. Reads the cookies for the site of url, saves the sign-in, then closes the tab (a tab that is already gone is fine). Answers the new item. On a 409 the tab is left open so the person can sign in and press Save again.
Parameters #
curl --unix-socket "$SWITCHBOARD_HOME/engine.sock" -X POST http://localhost/signins/sign-in-now/finish
Save the sign-in after the person signed in, and close the tab. The Unix socket needs no token; loopback 127.0.0.1:48080 needs Authorization: Bearer <api-token>.