Skip to content

Commit

Permalink
refactor(service): users/auth: add todo notes
Browse files Browse the repository at this point in the history
  • Loading branch information
restjohn committed Dec 1, 2024
1 parent 9eb6d42 commit 7c7bbb3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion service/src/express.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,11 @@ app.use('/private',
express.static(path.join(__dirname, 'private')));

// Configure authentication
// TODO: users-next: remove this and initialize in main app module
const authentication = AuthenticationInitializer.initialize(app, passport, provision);

// Configure routes
// TODO: don't pass authentication to other routes, but enforce authentication ahead of adding route modules
// TODO: users-next: don't pass authentication to other routes, but enforce authentication ahead of adding route modules
require('./routes')(app, { authentication });

// Express requires a 4 parameter function callback, do not remove unused next parameter
Expand Down

0 comments on commit 7c7bbb3

Please sign in to comment.