Skip to content

Commit

Permalink
sign jwt
Browse files Browse the repository at this point in the history
  • Loading branch information
birm committed Jun 21, 2024
1 parent 076cef7 commit 78d1c30
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion handlers/customHandlers.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,8 @@ 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
req.data = newToken;
let token = auth.makeJwt(user, auth.PRIKEY, auth.EXPIRY);
req.data = {"token": token, "sub": email};
next()
}).catch((e) => next(e));
};
Expand Down

0 comments on commit 78d1c30

Please sign in to comment.