@carisls/sso-standard 1.0.2 → 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/cjs/index.cjs CHANGED
@@ -32,8 +32,12 @@ const router = (options) => {
32
32
  if (!options)
33
33
  throw Error('You need to set options parameter');
34
34
 
35
+ // Extract providers
35
36
  const providers = options.providers?.split ? options.providers.split(',').map(i => ({ ssoUrl: i })) : options.providers;
36
37
 
38
+ // Pick the first provider
39
+ providers.splice(1);
40
+
37
41
  if (!options.providers)
38
42
  throw Error('providers is always required');
39
43
 
package/esm/index.js CHANGED
@@ -33,8 +33,12 @@ const router = (options) => {
33
33
  if (!options)
34
34
  throw Error('You need to set options parameter');
35
35
 
36
+ // Extract providers
36
37
  const providers = options.providers?.split ? options.providers.split(',').map(i => ({ ssoUrl: i })) : options.providers;
37
38
 
39
+ // Pick the first provider
40
+ providers.splice(1);
41
+
38
42
  if (!options.providers)
39
43
  throw Error('providers is always required');
40
44
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@carisls/sso-standard",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "A middleware implementing standard flow SSO",
5
5
  "main": "cjs/index.cjs",
6
6
  "module": "esm/index.js",