Get enabled login methods
Get enabled login methods: Returns recipes with their enabled setting and recipe specific configuration.
GET
/{apiBasePath}/{tenantId}/loginmethodsPath parameters
apiBasePathstringrequiredIts value depends on the apiBasePath set by the user
tenantIdstringThe tenant against which the request is made. If left empty, the default tenant will be used.
Query parameters
clientTypeclientTypeHeader parameters
ridstringThe multitenancy recipe ID
Responses
200Get enabled login methods
One of:
object
statusstatusOKrequiredSuccess status indicator
Allowed:
OKrecipesobjectrequiredShow propertiesHide properties
emailPasswordobjectrequiredShow propertiesHide properties
enabledbooleanrequiredthirdPartyobjectrequiredShow propertiesHide properties
enabledbooleanrequiredprovidersobject[]requiredShow propertiesHide properties
Array of
objectidthirdPartyIdrequiredThird party provider identifier
namestringpasswordlessobjectrequiredShow propertiesHide properties
enabledbooleanrequiredfirstFactorsstring[]requiredgeneralErrorResponse
statusstringError status code
Allowed:
GENERAL_ERRORmessagestringError message
404Resource not found error
string500Internal server error
stringTry it
Server
Parameters
Request
curl -X GET "/auth/public/loginmethods"const response = await fetch("/auth/public/loginmethods", {
method: "GET"
});import requests
response = requests.get(
"/auth/public/loginmethods",
)Response
{
"status": "OK",
"recipes": {
"emailPassword": {
"enabled": true
},
"thirdParty": {
"enabled": true,
"providers": [
{
"id": "google",
"name": "Google"
}
]
},
"passwordless": {
"enabled": true
},
"firstFactors": [
"string"
]
}
}"Not Found""Internal Error"