POST
/
auth
/
social-providers
curl --request POST \
  --url https://api.pxyz.dev/api/v0/auth/social-providers \
  --header 'Content-Type: application/json' \
  --data '{
  "tenantId": "<string>",
  "providerKey": "google",
  "enabled": true,
  "useCustomCredentials": true,
  "clientId": "<string>",
  "clientSecret": "<string>",
  "redirectUri": "<string>",
  "additionalScopes": "<any>",
  "authenticatable": true,
  "autoConnectAccounts": true,
  "config": "<any>"
}'
{
  "id": "<string>",
  "tenantId": "<string>",
  "providerKey": "google",
  "enabled": true,
  "useCustomCredentials": true,
  "clientId": "<string>",
  "redirectUri": "<string>",
  "additionalScopes": "<any>",
  "authenticatable": true,
  "autoConnectAccounts": true,
  "config": "<any>",
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z"
}

Body

application/json
tenantId
string
required
providerKey
enum<string>
required
Available options:
google,
github,
gitlab,
apple,
facebook
enabled
boolean
required
useCustomCredentials
boolean
clientId
string | null
clientSecret
string | null
redirectUri
string | null
additionalScopes
any | null
authenticatable
boolean
autoConnectAccounts
boolean
config
any

Response

200 - application/json
id
string
required
tenantId
string
required
providerKey
enum<string>
required
Available options:
google,
github,
gitlab,
apple,
facebook
enabled
boolean
required
useCustomCredentials
boolean | null
clientId
string | null
redirectUri
string | null
additionalScopes
any
authenticatable
boolean | null
autoConnectAccounts
boolean | null
config
any
createdAt
string
required
updatedAt
string
required