@seamless-auth/express 0.0.2-beta.16 → 0.0.2-beta.18
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 +3 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -269,7 +269,7 @@ async function finishRegister(req, res, opts) {
|
|
|
269
269
|
if (result.error) {
|
|
270
270
|
return res.status(result.status).json(result.error);
|
|
271
271
|
}
|
|
272
|
-
res.status(result.status).
|
|
272
|
+
res.status(result.status).json({ message: "success" });
|
|
273
273
|
}
|
|
274
274
|
|
|
275
275
|
// src/handlers/me.ts
|
|
@@ -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,
|