curl --request POST \
--url https://api.cashful.africa/api/canary/authentication/sign-in/email \
--header 'Content-Type: application/json' \
--data '
{
"email": "john.doe@example.com",
"password": "StrongPassword123!"
}
'{
"user": {
"id": "<string>",
"email": "<string>",
"emailVerified": true,
"name": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"image": "<string>",
"role": "<string>",
"banned": true,
"banReason": "<string>",
"banExpires": "2023-11-07T05:31:56Z",
"isAnonymous": true,
"username": "<string>",
"displayUsername": "<string>",
"phoneNumber": "<string>",
"phoneNumberVerified": true
},
"token": "<string>",
"redirect": true,
"url": "<string>"
}Authenticate a user using email and password
curl --request POST \
--url https://api.cashful.africa/api/canary/authentication/sign-in/email \
--header 'Content-Type: application/json' \
--data '
{
"email": "john.doe@example.com",
"password": "StrongPassword123!"
}
'{
"user": {
"id": "<string>",
"email": "<string>",
"emailVerified": true,
"name": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"image": "<string>",
"role": "<string>",
"banned": true,
"banReason": "<string>",
"banExpires": "2023-11-07T05:31:56Z",
"isAnonymous": true,
"username": "<string>",
"displayUsername": "<string>",
"phoneNumber": "<string>",
"phoneNumberVerified": true
},
"token": "<string>",
"redirect": true,
"url": "<string>"
}The email address of the user
"john.doe@example.com"
The password for the user account
"StrongPassword123!"
The URL to use for email verification callback
"https://www.cashful.africa/auth/callback"
If this is false, the session will not be remembered. Default is true.
true