Skip to content

Commit 7217b3c

Browse files
committed
newToken not user
1 parent 78d1c30 commit 7217b3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

handlers/customHandlers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ function impersonate() {
156156
newToken.email = email;
157157
newToken.name = email;
158158
newToken.data = x[0];
159-
let token = auth.makeJwt(user, auth.PRIKEY, auth.EXPIRY);
159+
let token = auth.makeJwt(newToken, auth.PRIKEY, auth.EXPIRY);
160160
req.data = {"token": token, "sub": email};
161161
next()
162162
}).catch((e) => next(e));

0 commit comments

Comments
 (0)