Early access: these pages are being written and reviewed. Facts in the header boxes come straight from the product.
List the extra sign-in providers the login page should offer
GET
/api/v1/auth/providers
const url = 'https://api.pitch2sale.com/api/v1/auth/providers';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.pitch2sale.com/api/v1/auth/providersPublic and cacheable (60 s). google is true when Sign in with Google is enabled. turnstile_site_key is the Cloudflare Turnstile site key when the auth bot gate is on (null when off); while it is set, POST /auth/register, /auth/register/resend, /auth/login, /auth/forgot-password, /auth/register-with-code and /users/accept-invite require a turnstile_token body field and answer 400 captcha_failed without a valid one.
Responses
Section titled “Responses”Providers
Media typeapplication/json
object
google
required
boolean
turnstile_site_key
required
string | null
Examplegenerated
{ "google": true, "turnstile_site_key": "example"}Rate limit exceeded
Media typeapplication/json
object
error
required
string
code
string
message
string
details
Array<object>
object
field
required
string
message
required
string
code
required
string
Examplegenerated
{ "error": "example", "code": "example", "message": "example", "details": [ { "field": "example", "message": "example", "code": "example" } ]}