Initiate OAuth2 login
GET
/v1/auth/login
const url = 'https://api.adversarial.com/api/v1/auth/login?next_url=example&provider=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/login?next_url=example&provider=example'Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”next_url
required
string
provider
required
string
invite_code
string | null format: uuid
Responses
Section titled “Responses”Redirect to OAuth provider’s login page
Invalid auth provider
Internal server error