skyllful-auth-integration 1.0.1 → 1.0.3
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 +4 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -97,7 +97,8 @@ async function getUserInfo() {
|
|
|
97
97
|
// Check if required parameters are missing
|
|
98
98
|
if (!userId || !firstName || !lastName) {
|
|
99
99
|
showErrorPage();
|
|
100
|
-
|
|
100
|
+
// Return a promise that never resolves to keep the error page visible
|
|
101
|
+
return new Promise(() => { });
|
|
101
102
|
}
|
|
102
103
|
const permissions = permissionsStr
|
|
103
104
|
? permissionsStr.split(',').map(p => p.trim().toLowerCase()).filter(p => p)
|
|
@@ -108,7 +109,8 @@ async function getUserInfo() {
|
|
|
108
109
|
lastName,
|
|
109
110
|
hasSimulatorPermission: permissions.includes('simulator'),
|
|
110
111
|
hasIqPermission: permissions.includes('iq'),
|
|
111
|
-
hasStudioPermission: permissions.includes('studio')
|
|
112
|
+
hasStudioPermission: permissions.includes('studio'),
|
|
113
|
+
hasAdminPermission: permissions.includes('admin')
|
|
112
114
|
};
|
|
113
115
|
}
|
|
114
116
|
exports.default = getUserInfo;
|