Login page step 2: verify the one-time code.
POST
/oauth/login/code
const url = 'https://api.contentsurface.io/oauth/login/code';const options = {method: 'POST'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.contentsurface.io/oauth/login/codeThe sign-in page’s second step, posted by the page itself: checks the code — valid a few minutes, in the browser that asked for it — signs the person in and returns to the application with a code. Not for applications.
Responses
Section titled “Responses”OK