Skip to content

Commit

Permalink
fix: directory permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
jonalan7 committed May 4, 2021
1 parent cc75244 commit 08724ea
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/controllers/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,8 @@ export async function saveToken(
path.join(folder, `${session}.data.json`),
JSON.stringify(token)
);
fs.chmodSync(folder, '777');
fs.chmodSync(folder + '/' + session + '.data.json', '777');
} catch (error) {
throw 'Failed to save token...';
}
Expand Down

0 comments on commit 08724ea

Please sign in to comment.