]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/middlewares/oauth.ts
server/mw/oauth: res.loc.auth to true upon auth
[github/Chocobozzz/PeerTube.git] / server / middlewares / oauth.ts
index ab530141543a1154b49603fe61bc010601ad7258..ffc1b7ca9532a780d255ac5ad856fdfa5a25f17f 100644 (file)
@@ -20,6 +20,8 @@ function authenticate (req: express.Request, res: express.Response, next: expres
         .end()
     }
 
+    res.locals.authenticated = true
+
     return next()
   })
 }