Skip to content

Commit

Permalink
newToken not user
Browse files Browse the repository at this point in the history
  • Loading branch information
birm committed Jun 21, 2024
1 parent 78d1c30 commit 7217b3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion handlers/customHandlers.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ function impersonate() {
newToken.email = email;

Check failure on line 156 in handlers/customHandlers.js

View workflow job for this annotation

GitHub Actions / build (10.x)

Expected indentation of 6 spaces but found 8
newToken.name = email;

Check failure on line 157 in handlers/customHandlers.js

View workflow job for this annotation

GitHub Actions / build (10.x)

Expected indentation of 6 spaces but found 8
newToken.data = x[0];

Check failure on line 158 in handlers/customHandlers.js

View workflow job for this annotation

GitHub Actions / build (10.x)

Expected indentation of 6 spaces but found 8
let token = auth.makeJwt(user, auth.PRIKEY, auth.EXPIRY);
let token = auth.makeJwt(newToken, auth.PRIKEY, auth.EXPIRY);
req.data = {"token": token, "sub": email};
next()
}).catch((e) => next(e));
Expand Down

0 comments on commit 7217b3c

Please sign in to comment.