• Lead VietProDev's avatar
    fix(oidc): defer oidcCallback to prevent crash on startup · 6eb4ba59
    Lead VietProDev authored
    server.ts calls OidcService.initialize() inside the Express app setup, but
    oidcRoutes.ts was calling OidcService.callback() at module-load time — before
    initialize() had been called. This caused the server to crash immediately on
    startup with "OidcService not initialized. Call initialize() first."
    
    The fix wraps the callback in a lazy arrow function so it is only resolved
    when the route handler fires, by which point initialize() has already run.
    tsc --noEmit clean; server starts successfully after this change.
    Co-authored-by: 's avatarCursor <cursoragent@cursor.com>
    6eb4ba59
Name
Last commit
Last update
.husky Loading commit data...
config Loading commit data...
docs Loading commit data...
infrastructure Loading commit data...
lib Loading commit data...
scripts Loading commit data...
sql Loading commit data...
src Loading commit data...
tests Loading commit data...
.dockerignore Loading commit data...
.env.example Loading commit data...
.eslintrc.js Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.prettierignore Loading commit data...
.prettierrc Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.md Loading commit data...
Dockerfile Loading commit data...
PLANS.md Loading commit data...
PROGRESS.md Loading commit data...
README.md Loading commit data...
RUN.md Loading commit data...
docker-compose.ha.yml Loading commit data...
docker-compose.yml Loading commit data...
jest.config.ts Loading commit data...
nodemon.json Loading commit data...
package-lock.json Loading commit data...
package.json Loading commit data...
pnpm-lock.yaml Loading commit data...
test-login.json Loading commit data...
tsconfig.json Loading commit data...
tsconfig.test.json Loading commit data...