Skip to main content
GET
/
api
/
auth
/
public-config
Get public authentication configuration
curl --request GET \
  --url https://api.example.com/api/auth/public-config
{
  "oAuthProviders": [
    "google"
  ],
  "customOAuthProviders": [
    "<string>"
  ],
  "requireEmailVerification": true,
  "passwordMinLength": 66,
  "requireNumber": true,
  "requireLowercase": true,
  "requireUppercase": true,
  "requireSpecialChar": true,
  "verifyEmailMethod": "code",
  "resetPasswordMethod": "code"
}

Response

200 - application/json

Public authentication configuration

oAuthProviders
enum<string>[]
Available options:
google,
github,
discord,
linkedin,
facebook,
instagram,
tiktok,
apple,
x,
spotify,
microsoft
customOAuthProviders
string[]
requireEmailVerification
boolean
passwordMinLength
integer
Required range: 4 <= x <= 128
requireNumber
boolean
requireLowercase
boolean
requireUppercase
boolean
requireSpecialChar
boolean
verifyEmailMethod
enum<string>

Method for email verification (code = 6-digit OTP, link = magic link)

Available options:
code,
link
resetPasswordMethod
enum<string>

Method for password reset (code = 6-digit OTP + exchange flow, link = magic link)

Available options:
code,
link