added oauth refresh token support

This commit is contained in:
Danny Coates 2020-07-24 18:11:50 -07:00
parent ce507c557f
commit f3a1fde07f
No known key found for this signature in database
GPG key ID: 4C442633C62E00CB
9 changed files with 120 additions and 32 deletions

View file

@ -13,9 +13,6 @@ function id(user, kid) {
module.exports = {
async get(req, res) {
if (!req.user) {
return res.sendStatus(401);
}
const kid = req.params.id;
try {
const fileId = id(req.user, kid);
@ -32,9 +29,6 @@ module.exports = {
},
async post(req, res) {
if (!req.user) {
return res.sendStatus(401);
}
const kid = req.params.id;
try {
const limiter = new Limiter(1024 * 1024 * 10);