curl --request DELETE \
--url https://api.royalti.io/auth/social/{provider}/unlink \
--header 'Authorization: Bearer <token>'{
"success": true,
"message": "<string>",
"data": {}
}Unlink a social provider from the current user’s account
curl --request DELETE \
--url https://api.royalti.io/auth/social/{provider}/unlink \
--header 'Authorization: Bearer <token>'{
"success": true,
"message": "<string>",
"data": {}
}const response = await fetch('https://api.royalti.io/auth/social/example-id/unlink', {
method: 'DELETE',
headers: {
'Authorization': `Bearer ${token}`,
},
});
const data = await response.json();
console.log(data);
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"
The social provider to link (google, facebook, or linkedin)
google, facebook, linkedin