@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 +1 -0
- package/dist/index.js +2 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
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,
|