skyllful-auth-integration 1.0.1 → 1.0.2

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.
Files changed (2) hide show
  1. package/dist/index.js +2 -1
  2. package/package.json +1 -1
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
- throw new Error('Missing required authentication parameters');
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)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "skyllful-auth-integration",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "Parse authentication parameters from URL and extract user information",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",