Complete OAuth2 login
GET
/v1/auth/callback
const url = 'https://api.adversarial.com/api/v1/auth/callback?state=example';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.adversarial.com/api/v1/auth/callback?state=example'Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”code
string | null
state
required
string
error
string | null
Responses
Section titled “Responses”Redirect to the next URL
Unauthorized
Internal server error