@seamless-auth/express 0.0.2-beta.16 → 0.0.2-beta.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -14,6 +14,7 @@ type SeamlessAuthServerOptions = {
14
14
  preAuthCookieName?: string;
15
15
  };
16
16
  interface SeamlessAuthUser {
17
+ id: string;
17
18
  sub: string;
18
19
  roles: string[];
19
20
  email: string;
package/dist/index.js CHANGED
@@ -433,7 +433,9 @@ function requireAuth(opts) {
433
433
  return;
434
434
  }
435
435
  const user = {
436
+ id: payload.sub,
436
437
  sub: payload.sub,
438
+ // TODO: Silly to store the same value twice. Search every where its used and phase this out.
437
439
  roles: Array.isArray(payload.roles) ? payload.roles : [],
438
440
  email: payload.email,
439
441
  phone: payload.phone,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamless-auth/express",
3
- "version": "0.0.2-beta.16",
3
+ "version": "0.0.2-beta.17",
4
4
  "description": "Express adapter for Seamless Auth passwordless authentication",
5
5
  "license": "AGPL-3.0-only",
6
6
  "type": "module",