@simpleview/sv-auth-client 4.4.4-0 → 4.4.5-0

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/package.json +1 -1
  2. package/src/utils.js +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@simpleview/sv-auth-client",
3
- "version": "4.4.4-0",
3
+ "version": "4.4.5-0",
4
4
  "description": "Client for communicating with sv-auth",
5
5
  "author": "Owen Allen <owenallenaz@gmail.com>",
6
6
  "dependencies": {
package/src/utils.js CHANGED
@@ -30,8 +30,8 @@ function validateAuthUrl(authUrl) {
30
30
  "https://auth.kube.simpleview.io/"
31
31
  ]
32
32
 
33
- if (validUrls.indexOf(authUrl) === -1) {
34
- throw new Error("authUrl must be one of " + validUrls.join(", "));
33
+ if (validUrls.indexOf(authUrl) === -1 && !/http[^.]+.ui-service.default.svc.cluster.local/.test(authUrl)) {
34
+ throw new Error("authUrl must be one of " + validUrls.join(", "));
35
35
  }
36
36
 
37
37
  return true;