curl --request POST \
--url https://api.royalti.io/auth/loginlink \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"email": "[email protected]"
}
'{
"success": true,
"message": "<string>",
"data": {}
}Request a magic login link to be sent to the user’s email
curl --request POST \
--url https://api.royalti.io/auth/loginlink \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"email": "[email protected]"
}
'{
"success": true,
"message": "<string>",
"data": {}
}const response = await fetch('https://api.royalti.io/auth/loginlink', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({
"email": "sample-email"
})
});
const data = await response.json();
console.log(data);