- JWT authentication (login, register, password reset, email verification)
- Profile updating
- Password changing
- Product CRUD
cp .env.example .env
composer install
php artisan jwt:secret
(generate a secret key that will be used to sign your tokens)php artisan migrate:fresh --seed
In order to authenticate, you have to log in using valid credentials. User data and an access token will be returned. You can use this access token to do subsequent requests to the API.
The access token has a TTL of 1 hour until it expires. The access token should be refreshed within this time window to avoid becoming unauthenticated.
The access token can be refreshed for two weeks. After that, the user has to log in again.
Feel free to open a pull request if you want to contribute to this project. All contributions / suggestions are welcome ✨