mirror of
https://github.com/usatiuk/ustk-todolist.git
synced 2025-10-28 15:47:48 +01:00
update tests to workaround (I think) this thing https://github.com/facebook/jest/issues/9624 didn't update react-spring because too lazy
8 lines
232 B
JavaScript
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'] }),
|
|
};
|