Skip to content

Commit 9367f9e

Browse files
committed
fix: simplified default transform
1 parent b6b5273 commit 9367f9e

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/response-utils.js

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,8 @@ import HTTPError from "./http-error";
33

44
function defaultTransform({name,roles,session,token,iat,exp}) {
55
return {
6-
ok: true,
7-
userCtx: {
8-
name,
9-
roles
10-
},
11-
session,
12-
token: token,
6+
userCtx: { name, roles },
7+
session, token,
138
issued: new Date(iat * 1000),
149
expires: new Date(exp * 1000)
1510
};

0 commit comments

Comments
 (0)