We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 78d1c30 commit 7217b3cCopy full SHA for 7217b3c
handlers/customHandlers.js
@@ -156,7 +156,7 @@ function impersonate() {
156
newToken.email = email;
157
newToken.name = email;
158
newToken.data = x[0];
159
- let token = auth.makeJwt(user, auth.PRIKEY, auth.EXPIRY);
+ let token = auth.makeJwt(newToken, auth.PRIKEY, auth.EXPIRY);
160
req.data = {"token": token, "sub": email};
161
next()
162
}).catch((e) => next(e));
0 commit comments