Initiate OAuth2 login
GET
/_torii/auth/oauth2/{provider}/authorize
const url = 'https://your-app.torii.so/_torii/auth/oauth2/example/authorize?_is_native=false&_legal_consent=false';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://your-app.torii.so/_torii/auth/oauth2/example/authorize?_is_native=false&_legal_consent=false'Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” provider
required
string
Header Parameters
Section titled “Header Parameters ” Host
string
Query Parameters
Section titled “Query Parameters ” _proxy_origin
string
_redirect_path
string
_is_native
boolean
_native_redirect
string
_code_challenge
string
_invitation_token
string
_legal_consent
boolean
Responses
Section titled “ Responses ”Found
Media type */*