Commit Graph

18 Commits

Author SHA1 Message Date
5393743c9d Fix imports of authorized function 2024-01-21 13:33:05 +08:00
669cddeec8 fix some rls issue 2023-10-05 14:30:10 +08:00
4a55e801b4 fix typo 2023-10-05 14:28:50 +08:00
3f572ea89a fix typo 2023-10-05 14:27:52 +08:00
c1ad9b6f41 cont 2023-10-05 14:27:18 +08:00
b1899e340d replace library item 2023-10-05 14:25:10 +08:00
381e9bc173 replace database subscriber with db trigger 2023-10-05 14:24:05 +08:00
612151c151 remove elastic from docker-compose 2023-10-05 14:24:04 +08:00
9370951893 create a repository directory 2023-10-05 14:22:56 +08:00
425864ce01 remove knex 2023-10-05 14:21:56 +08:00
07d43812a7 use winston logger instead of console log so the log will be truncated if it exceeds the max entry size 2023-07-26 16:27:18 +08:00
aa15ef0282 Sort by expires at desc nulls last 2022-06-06 13:34:23 +08:00
b7206457b4 Add test for revoke api key 2022-05-27 18:36:17 +08:00
0f2a55d274 Add list/delete api key resolver 2022-05-27 18:35:38 +08:00
333b0259ba Fix tests 2022-05-27 18:33:49 +08:00
a09588d3a7 Update generateApiKey resolver 2022-05-27 18:33:49 +08:00
d1c2721b95 Add expiration date to api key generation (#495)
* Add exp to jwt token

* Add expiredAt in generate api key input

* Check exp in claim

* Add tests
2022-04-28 09:09:40 +08:00
2ebdaba780 add generate api key api and test (#392)
* add generate api key api and test

* test if user can make api call with the api key
2022-04-12 12:11:45 +08:00