Commit Graph

17 Commits

Author SHA1 Message Date
9a554bb2ec 📝 docs: add OpenAPI for API documentation 2026-03-06 21:56:50 +07:00
68fec64efc 🚨 fix: resolve linting type error 2026-01-31 08:13:04 +07:00
5a43769f69 🚨 fix: resolve linting type error 2026-01-30 21:21:43 +07:00
22428c720c 🐛 fix: user client info in oauth flow 2026-01-20 09:39:50 +07:00
d8e8ec3fa7 ♻️ refactor: app token and oAuth endpoint request
These changes include:
1. Replacing the app token with a standard authorization barrier.
2. Changing the response body in the OAuth request by wrapping the endpoint link with a structure instead of placing it in the callback payload data.
2026-01-07 23:56:44 +07:00
f47a97e00e ♻️ refactor: add entry point for middleware module 2026-01-06 10:10:40 +07:00
112f5188ed add throttle middleware
Create throttling on middleware to pause requests until a specified time before continuing. (default time 2s)
2025-08-24 14:02:28 +07:00
89ebfb8aa4 🔒 add app access token middleware
Create a middleware app access token, so that all requests must include `access_token` in the header with a value equal
to API_KEY in the .env file. If not, a `403 Forbidden` error will be returned.
2025-08-13 11:26:57 +07:00
ffdc80146d 💩 create initiation file for isAdmin middleware 2025-07-07 22:28:16 +07:00
2fe34034a5 🚩 (user) create soft delete controller boilerplate
create basic boilerplate for soft delete user including make middleware that only admin and owner can access
2025-07-06 23:40:05 +07:00
89c4fb79a7 🚨 fix all linting error 2025-06-25 10:14:01 +07:00
181e6f3688 edit:module:user | add middlewware for authenticated only 2025-06-22 09:52:22 +07:00
48946be6b7 edit:module:user | add middlewware for unauthenticated only 2025-06-22 09:45:06 +07:00
ac10ae14f6 fix: fix.env.example 2025-06-14 15:05:20 +07:00
be493b08ef create auth middleware 2025-05-15 17:19:35 +07:00
b8033f4e3d complete middleware 2025-05-13 15:38:58 +07:00
9cb84372b8 finishing auth controller verification 2025-05-13 14:35:48 +07:00