mirror of
https://gitlab.com/timvisee/send.git
synced 2025-12-06 22:20:55 +03:00
added oauth refresh token support
Co-authored-by: timvisee <tim@visee.me>
This commit is contained in:
@@ -41,6 +41,14 @@ module.exports = function(ws, req) {
|
||||
? config.max_downloads
|
||||
: config.anon_max_downloads;
|
||||
|
||||
if (config.fxa_required && !user) {
|
||||
ws.send(
|
||||
JSON.stringify({
|
||||
error: 401
|
||||
})
|
||||
);
|
||||
return ws.close();
|
||||
}
|
||||
if (
|
||||
!metadata ||
|
||||
!auth ||
|
||||
|
||||
Reference in New Issue
Block a user