This repository has been archived on 2024-10-31. You can view files and clone it, but cannot push or open issues or pull requests.
Files
ShareX-Upload-Server/util/auth.js
2021-08-18 00:12:37 -07:00

6 lines
202 B
JavaScript

function auth(myKey, givenKey, c) {
if (c.key.includes(givenKey) || c.admin.key.includes(givenKey) || c.public === true || myKey === null) return true;
return false;
}
module.exports = auth;