curl --request GET \
--url https://api.royalti.io/auth/facebook/callback \
--header 'Authorization: Bearer <token>'{
"success": false,
"error": {
"code": "<string>",
"message": "<string>",
"details": [
"<string>"
]
}
}Callback URL that Facebook will redirect to after authentication
curl --request GET \
--url https://api.royalti.io/auth/facebook/callback \
--header 'Authorization: Bearer <token>'{
"success": false,
"error": {
"code": "<string>",
"message": "<string>",
"details": [
"<string>"
]
}
}const response = await fetch('https://api.royalti.io/auth/facebook/callback', {
method: 'GET',
});
const data = await response.json();
console.log(data);
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Redirect to frontend with token