Files
ustk-todolist/routes/auth.js
Stepan Usatiuk 052256788e update pretty much everything
update tests to workaround (I think) this thing https://github.com/facebook/jest/issues/9624
didn't update react-spring because too lazy
2020-08-14 14:44:44 +03:00

8 lines
232 B
JavaScript

const jwt = require('express-jwt');
const { secret } = require('../config');
module.exports = {
required: jwt({ secret, algorithms: ['HS256'] }),
optional: jwt({ secret, credentialsRequired: false, algorithms: ['HS256'] }),
};