mirror of
https://github.com/sasjs/server.git
synced 2026-01-07 22:50:05 +00:00
chore: added desktop mode + drive tmp folder fix
This commit is contained in:
@@ -28,6 +28,9 @@ const authenticateToken = (
|
||||
key: string,
|
||||
tokenType: 'accessToken' | 'refreshToken' = 'accessToken'
|
||||
) => {
|
||||
const { MODE } = process.env
|
||||
if (MODE === 'desktop') return next()
|
||||
|
||||
const authHeader = req.headers['authorization']
|
||||
const token = authHeader?.split(' ')[1]
|
||||
if (!token) return res.sendStatus(401)
|
||||
|
||||
Reference in New Issue
Block a user