Get available sign-in methods - Spacefast Docs
Get available sign-in methods
Returns which sign-in methods the server has configured: the social providers with credentials, whether email one-time codes can be sent, and password sign-in. Carries the public client keys a browser needs, with captcha and googleOneTapClientId null when those are unconfigured.
GET /v1/auth/methods
Responses
200 Response for status 200
$schema string
Canonical JSON Schema URL for this response body. The server also sends it in the Link: rel="describedby" response header.
data object required
- providers object required
wpcomboolean requiredgoogleboolean requiredgithubboolean requiredemailOtpboolean requiredpasswordboolean requiredcaptchaobject | any required- Any of:
providerstring requiredsiteKeystring requiredgoogleOneTapClientIdstring | any required
- Any of:
default Error
Every 4xx and 5xx response is one RFC 9457 problem document served as application/problem+json.
$schema string
Canonical JSON Schema URL for this response body. The server also sends it in the Link: rel="describedby" response header.
- type string required
- title string required
- status integer required
- detail string required
- code string required
- pointer string
- details object
- suggestions string[]
- next string[]
- requestId string required
Try it
Server
Base URL https://api.spacefast.com
Send
Request
cURL
curl -X GET "https://api.spacefast.com/v1/auth/methods"
JavaScript
const response = await fetch("https://api.spacefast.com/v1/auth/methods", {
method: "GET"
});
Python
import requests
response = requests.get(
"https://api.spacefast.com/v1/auth/methods",
)
Response
200 default
{
"$schema": "http://example.com",
"data": {
"providers": {
"wpcom": true,
"google": true,
"github": true
},
"emailOtp": true,
"password": true,
"captcha": {
"provider": "turnstile",
"siteKey": "string"
},
"googleOneTapClientId": "string"
}
}
{
"$schema": "http://example.com",
"type": "string",
"title": "string",
"status": -9007199254740991,
"detail": "string",
"code": "string",
"pointer": "string",
"details": {
"property1": null,
"property2": null
},
"suggestions": [
"string"
],
"next": [
"string"
],
"requestId": "string"
}