Skip to content

Commit 5975f25

Browse files
committed
🐛 FIX: edge case
1 parent 83e2dd4 commit 5975f25

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

utils/authentication.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ const pwd = process.cwd();
55

66
try {
77
const newAuth = require(`${pwd}/auth.js`);
8+
const user = require(`${pwd}/user.js`);
9+
if (newAuth.Authorization.length < 7 || user.username === "") throw err;
810
} catch (error) {
911
module.exports = async () => {
1012
io.write(

0 commit comments

Comments
 (0)