@gov-cy/govcy-express-services 1.1.0 → 1.1.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 +1 -1
- package/src/index.mjs +14 -14
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gov-cy/govcy-express-services",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"description": "An Express-based system that dynamically renders services using @gov-cy/govcy-frontend-renderer and posts data to a submission API.",
|
|
5
5
|
"author": "DMRID - DSF Team",
|
|
6
6
|
"license": "MIT",
|
package/src/index.mjs
CHANGED
|
@@ -99,20 +99,20 @@ export default function initializeGovCyExpressService(){
|
|
|
99
99
|
|
|
100
100
|
// 🛠️ Debugging routes -----------------------------------------------------
|
|
101
101
|
// 🙍🏻♂️ -- ROUTE: Debugging route Protected Route
|
|
102
|
-
if (!isProdOrStaging()) {
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
}
|
|
102
|
+
// if (!isProdOrStaging()) {
|
|
103
|
+
// app.get('/user', requireAuth, naturalPersonPolicy, (req, res) => {
|
|
104
|
+
// res.send(`
|
|
105
|
+
// User name: ${req.session.user.name}
|
|
106
|
+
// <br> Sub: ${req.session.user.sub}
|
|
107
|
+
// <br> Profile type: ${req.session.user.profile_type}
|
|
108
|
+
// <br> Clinent ip: ${req.session.user.client_ip}
|
|
109
|
+
// <br> Unique Identifier: ${req.session.user.unique_identifier}
|
|
110
|
+
// <br> Email: ${req.session.user.email}
|
|
111
|
+
// <br> Id Token: ${req.session.user.id_token}
|
|
112
|
+
// <br> Access Token: ${req.session.user.access_token}
|
|
113
|
+
// `);
|
|
114
|
+
// });
|
|
115
|
+
// }
|
|
116
116
|
//----------------------------------------------------------------------
|
|
117
117
|
|
|
118
118
|
|