Skip to content

Commit

Permalink
Fix: use originalUrl instead of url (#388)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderleegs authored Mar 17, 2022
1 parent 7d79dda commit 4f43844
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions newmiddleware/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class AuthMiddleware {
}

verifyJwt(req, res, next) {
const { cookies, url } = req
const { cookies, originalUrl: url } = req
const { accessToken, userId } = this.authMiddlewareService.verifyJwt({
cookies,
url,
Expand All @@ -19,7 +19,7 @@ class AuthMiddleware {
}

whoamiAuth(req, res, next) {
const { cookies, url } = req
const { cookies, originalUrl: url } = req
const { accessToken, userId } = this.authMiddlewareService.whoamiAuth({
cookies,
url,
Expand Down

0 comments on commit 4f43844

Please sign in to comment.