Skip to content

Commit 01b82f7

Browse files
committed
add "auth" to noauth
1 parent 0fddf51 commit 01b82f7

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/auth.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,10 @@ function registerFakeAuth() {
179179
return await handleServiceUrl(req, res)
180180
}
181181

182+
if (!req.isAuthenticated()) {
183+
return res.redirect("/auth")
184+
}
185+
182186
next()
183187
})
184188

0 commit comments

Comments
 (0)