Skip to content

Commit

Permalink
Moved static routes before OIDC to prevent errors due to silent login
Browse files Browse the repository at this point in the history
  • Loading branch information
glenndehaan committed Oct 7, 2024
1 parent a4a11ea commit a0b8520
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,11 @@ app.use((req, res, next) => {
next();
});

/**
* Serve static public dir
*/
app.use(express.static(`${__dirname}/public`));

/**
* Initialize OIDC
*/
Expand All @@ -106,11 +111,6 @@ app.use(cookieParser());
*/
app.use(flashMessage);

/**
* Serve static public dir
*/
app.use(express.static(`${__dirname}/public`));

/**
* Configure routers
*/
Expand Down

0 comments on commit a0b8520

Please sign in to comment.