We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e8e57f8 commit afd03a3Copy full SHA for afd03a3
1 file changed
src/server/middleware/auth.ts
@@ -167,12 +167,12 @@ export const withAuth = async (server: FastifyInstance) => {
167
req.url === "/health" ||
168
req.url === "/static" ||
169
req.url === "/json" ||
170
- req.url === "/auth/payload" ||
171
- req.url === "/auth/login" ||
172
- req.url === "/auth/user" ||
173
- req.url === "/auth/switch-account" ||
174
- req.url === "/auth/logout" ||
175
- req.url === "/transaction/status"
+ req.url.startsWith("/auth/payload") ||
+ req.url.startsWith("/auth/login") ||
+ req.url.startsWith("/auth/user") ||
+ req.url.startsWith("/auth/switch-account") ||
+ req.url.startsWith("/auth/logout") ||
+ req.url.startsWith("/transaction/status")
176
) {
177
// We skip auth check for static endpoints and auth routes
178
return;
0 commit comments