Skip to content

Commit

Permalink
fix: set user state after login
Browse files Browse the repository at this point in the history
  • Loading branch information
masb0ymas committed Dec 30, 2020
1 parent c7a359a commit 9857b54
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/middlewares/Authorization.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ async function Authorization(req: Request, res: Response, next: NextFunction) {
})
}

req.setState({ user: token?.data })
next()
}

Expand Down

0 comments on commit 9857b54

Please sign in to comment.