Closed bos21001 closed 5 days ago
The application now integrates Laravel Passport for authentication, providing secure API access with OAuth2. For further details on implementation, see the Apiato documentation.
Login (Password Grant with Proxy)
curl --location 'http://api.fin-track.local/v1/clients/web/login' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data-raw '{
"email": "admin@admin.com",
"password": "admin"
}'
Token Refresh
curl --location 'http://api.fin-track.local/v1/clients/web/refresh' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"refresh_token": "<your_refresh_token_here>"
}'
Logout
curl --location --request POST 'http://api.fin-track.local/v1/logout' \
--header 'Authorization: Bearer <your_access_token_here>' \
--header 'Accept: application/json'
These endpoints establish a secure login, token refresh, and logout process, ensuring robust authentication for our application. Let us know if further clarification is needed.