Authentication
This endpoint is used to authenticate a user and obtain a token for accessing protected resources.
Auth Login
POST /auth/login
The POST request is used to authenticate and login to YoguPay. Credentials are provided to business accounts by YoguPay
Headers
Name
Value
Content-Type
application/json
Token
token
Body
Name
Type
Description
username
string
User name of the user
password
string
Password of the user
Request and Response Example
{
"password": "1",
"username": "user@yogupay.com"
}{
"status": "1",
"message": "Login successful",
"image": "https://tumapay.com/tp/images/avatar.png",
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MTAwOTAsInVzZXJuYW1lIjoiZXJyb2xAeW9ndXBheS5jb20iLCJlbnZpcm9ubWVudCI6InN0YWdpbmciLCJpcF9hZGRyZXNzIjoiOjpmZmZmOjQxLjkwLjExNi4xNjEiLCJpYXQiOjE3MzAxMDU2MTAsImV4cCI6MTczMDEwNzQxMH0.HP9SGLNJsXW7DgGK0AYq6CYJjTc1YXLQbRekxK-dsR8",
"username": "user@yogupay.com",
"is_verified": 1,
"country_code": "GB",
"phone_number": 254712345678,
"full_name": "Demo Account",
"number_of_transactions": 0
}
{
"status": "0",
"message": "Invalid Login Details"
}
Last updated