JWT Autorization / Logging in and registering

This commit is contained in:
2020-07-19 14:35:51 +02:00
parent a267dd1f37
commit 9f4f5347d4
279 changed files with 23396 additions and 33 deletions

14
node_modules/translate/test/mock.js generated vendored Normal file
View File

@@ -0,0 +1,14 @@
// Utility method to mock responses from fetch()
const fetchMock = require('fetch-mock');
module.exports = (url, content, throws) => {
fetchMock.post(url, () => new Promise((resolve, reject) => {
setTimeout(() => {
throws ? reject(content) : resolve(content);
}, 500);
}));
};
module.exports.end = () => {
fetchMock.restore();
};