Spaces:
Runtime error
Runtime error
Commit History
-
feat: allow storing env variable in DB (#1802)
Unverified signature* feat(config): wip, make config controllable from DB, public side for now * fix: build * feat(config): add config manager env var toggle * wip: make backend config use config manager * fix: typechecks * fix: circular import * refactor: init hook sveltekit * fix: disable config manager during tests * refactor: use enum for semaphore, move delete from auto after 60s to separate `deleteAt` field * feat: config manager checks for updates on requests * fix: config script exit * fix: remove top-level awaits * fix: script await * feat: filter config keys based on public environment variables for more security * fix: change import to type for public environment variables48059af
-
refactor: make env imports match the rest of the app in `adminToken.ts`
4f27ac2
-
feat: improve port detection on admin cli login
f6a70cc
-
feat: admin CLI login (#1789)
Unverified signature* feat: implement admin token management and CLI login functionality - Added `ADMIN_CLI_LOGIN` and `ADMIN_TOKEN` to the environment configuration. - Introduced `AdminTokenManager` for handling admin sessions and token validation. - Updated user session handling to include admin status. - Enhanced API routes to utilize admin checks based on the new token management. - Modified frontend components to reflect admin status correctly. - Added a new endpoint for validating admin tokens. * fix: remove token after validationafbe0de