@abgov/nx-adsp 12.14.0 → 12.14.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abgov/nx-adsp",
3
- "version": "12.14.0",
3
+ "version": "12.14.1",
4
4
  "license": "Apache-2.0",
5
5
  "main": "src/index.js",
6
6
  "description": "Government of Alberta - Nx plugin for ADSP apps.",
@@ -98,8 +98,7 @@ async function initializeApp() {
98
98
  '/<%= projectName %>/v1/private',
99
99
  passport.authenticate(['tenant'], { session: false }),
100
100
  (req, res) => {
101
- const user = req.user as { name?: string } | undefined;
102
- res.json({ message: `Hello, ${user?.name ?? 'authenticated user'}.` });
101
+ res.json({ message: `Hello, ${req.user!.name}.` });
103
102
  }
104
103
  );
105
104