/auth/loginlink
Description:
The /auth/loginlink
endpoint generates and sends a login link to the specified email address. This login link allows users to securely log in to the system without requiring a password.
Method:
POST
Request Payload:
Parameter | Type | Description | Required |
---|---|---|---|
string | The email address to send the login link | Yes |
curl --request POST \
--url https://server26-dot-royalti-project.uc.r.appspot.com/auth/loginlink \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"email": "okc4pardon@gmail.com"
}'
{
"message": "Login Link sent"
}
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"
Success - LoginLink Sent
The response is of type object
.
curl --request POST \
--url https://server26-dot-royalti-project.uc.r.appspot.com/auth/loginlink \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"email": "okc4pardon@gmail.com"
}'
{
"message": "Login Link sent"
}