Skip to main content
DELETE
/
auth
/
social
/
{provider}
/
unlink
Unlink a social provider
curl --request DELETE \
  --url https://server26-dot-royalti-project.uc.r.appspot.com/auth/social/{provider}/unlink \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "message": "<string>",
  "data": {}
}
This endpoint requires authentication. Include your Bearer token in the Authorization header.

Code Examples

const response = await fetch('https://server26-dot-royalti-project.uc.r.appspot.com/auth/social/example-id/unlink', {
  method: 'DELETE',
  headers: {
    'Authorization': `Bearer ${token}`,
  },
});

const data = await response.json();
console.log(data);

Authorizations

Authorization
string
header
required

JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"

Path Parameters

provider
enum<string>
required

The social provider to link (google, facebook, or linkedin)

Available options:
google,
facebook,
linkedin

Response

Successfully unlinked social provider

success
boolean
Example:

true

message
string
data
object