mirror of
https://github.com/usatiuk/ustk-todolist.git
synced 2025-10-28 15:47:48 +01:00
create, update, remove users
This commit is contained in:
7
routes/auth.js
Normal file
7
routes/auth.js
Normal file
@@ -0,0 +1,7 @@
|
||||
const jwt = require('express-jwt');
|
||||
const { secret } = require('../config');
|
||||
|
||||
module.exports = {
|
||||
required: jwt({ secret }),
|
||||
optional: jwt({ secret, credentialsRequired: false }),
|
||||
};
|
||||
Reference in New Issue
Block a user