21 Commits

Author SHA1 Message Date
austinkelsay
e89c5cfcd3 Protect the rest of the endpoints 2024-10-02 17:27:38 -05:00
austinkelsay
a0e124d9ef Secure user endponts with session, dont require calling endpoints from nextauth, call models instead so we can completely secure the endpoints 2024-10-02 16:58:36 -05:00
austinkelsay
7953bb641f Remove getAllUsers endpoint, add checks to image proxy endpoint, setup local in memory cache for rate limitng in dev, added NODE_ENV variable 2024-09-30 20:35:07 -05:00
austinkelsay
e59bee30f7 Return back to basic rate limit middleware, setup server session to block user route to test 2024-09-30 19:41:26 -05:00
austinkelsay
f56c54cebb Fix path 2024-09-30 19:34:51 -05:00
austinkelsay
156a1c906f Try logging server session 2024-09-30 19:32:54 -05:00
austinkelsay
5fd17eaf30 Update getUserByEmail model 2024-09-30 15:06:11 -05:00
austinkelsay
d13ddfcaa9 custom nip05 and lightning address creation, updates, and deletes fully working. Still need to add to lnurlp endpoints 2024-09-26 14:50:14 -05:00
austinkelsay
215a00e593 fix course and lesson tracking for paid courses, add usercourses and userlessons into session 2024-09-22 17:08:26 -05:00
austinkelsay
96a6a29936 Created userCourse model, added endpoints, added basic useTrackcourse hook 2024-09-21 16:50:59 -05:00
austinkelsay
f7bbf93f95 video lesson tracking for courses, new userlesson table, also github experiment 2024-09-19 15:38:36 -05:00
austinkelsay
9528010829 Email login is working 2024-09-06 12:32:23 -05:00
austinkelsay
b9c2d04ed4 Add payment to cron endpoint for recurring subscribers, set cron to nce a day, set expiration to 31 days 2024-09-01 13:36:53 -05:00
austinkelsay
e69d974ad7 Added basic cron job, endpoint, and vercel setup just wrong intervals right now, also added admin and subscriptionExpiredAt into Role schema so I can show user a special message after their subscription expired 2024-09-01 12:40:25 -05:00
austinkelsay
c6c6fc4fbd implementation of pay as you go and recurring subscriptions on the frontend is fully working, just need the cron endpoint now. 2024-08-31 18:18:21 -05:00
austinkelsay
c8870bc1ff pay as you go subscriptions working and recurring subscriptions flow is halfway done, had to change schema. 2024-08-30 19:37:13 -05:00
austinkelsay
b953b76785 A lotta good stuff 2024-08-09 14:28:57 -05:00
austinkelsay
6b3991d332 Add aothor pubkey as env var, improve login/signup flow 2024-07-20 10:51:16 -05:00
austinkelsay
9287c9bd49 auto login / anon login 2024-02-11 00:36:25 -06:00
austinkelsay
1f9d76d783 Nostr login flow 2024-02-11 00:00:27 -06:00
austinkelsay
2de8b23d07 Added db models and endpoints for courses/resources/users 2024-02-10 22:13:44 -06:00