Video 111: Logging Out
This commit is contained in:
@@ -11,6 +11,7 @@ const auth = async (req, res, next) => {
|
||||
throw new Error()
|
||||
}
|
||||
|
||||
req.token = token
|
||||
req.user = user
|
||||
next()
|
||||
} catch (e) {
|
||||
|
||||
Reference in New Issue
Block a user