Skip to content

Commit

Permalink
Fix issue with Authentication not leading to login page
Browse files Browse the repository at this point in the history
Issue is outlined in SoftwareBrothers#13
  • Loading branch information
camanjj authored Jun 5, 2023
1 parent 917db73 commit 0bf0dbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/authentication/protected-routes.handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const withProtectedRoutesHandler = (
fastifyApp.addHook('preHandler', async (request, reply) => {
if (AdminRouter.assets.find((asset) => request.url.match(asset.path))) {
return;
} else if (AdminRouter.routes.find((r) => r.action === 'bundleComponents')) {
} else if (request.url.match(AdminRouter.routes.find((r) => r.action === 'bundleComponents').path) {
return;
} else if (
!request.url.startsWith(rootPath) ||
Expand Down

0 comments on commit 0bf0dbc

Please sign in to comment.