Logging in
POST
/login
This endpoint allows users to log in to the app using their email and password. The user must first be created in Firebase Authentication. Upon successful login, a token is returned, which is necessary for authentication in subsequent requests.
Steps to Create User in Firebase Authentication
Go to your Firebase project.
Navigate to Authentication.
Click on "Add User".
Provide the email and password.
Add the user.
Headers
Name | Value |
---|---|
Content-Type |
|
Body
Name | Type | Description |
---|---|---|
| string | Email of the user |
| string | Password of the user |
Response
Notes
Ensure that the email and password provided are correct and match the credentials used in Firebase Authentication.
The token returned in the response is necessary for all subsequent requests to the API. Store it securely and include it in the
Authorization
header asBearer <token>
for authenticated endpoints.
Last updated