@genezio/auth
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -50,2 +50,6 @@ "use strict"; | ||
this.instance = new AuthService(); | ||
if (typeof process !== "undefined" && process.env != null && process.env.GNZ_AUTH_FUNCTION_URL != null) { | ||
const url = process.env.GNZ_AUTH_FUNCTION_URL; | ||
this.instance.remote = new remote_1.Remote(url); | ||
} | ||
} | ||
@@ -67,6 +71,3 @@ return this.instance; | ||
let url; | ||
if (typeof process !== "undefined" && process.env != null && process.env.GNZ_AUTH_FUNCTION_URL != null) { | ||
url = process.env.GNZ_AUTH_FUNCTION_URL; | ||
} | ||
else if (cloud === "0") { | ||
if (cloud === "0") { | ||
url = `https://${id}.lambda-url.${region}.on.aws/AuthService`; | ||
@@ -73,0 +74,0 @@ } |
@@ -44,2 +44,6 @@ /** | ||
this.instance = new AuthService(); | ||
if (typeof process !== "undefined" && process.env != null && process.env.GNZ_AUTH_FUNCTION_URL != null) { | ||
const url = process.env.GNZ_AUTH_FUNCTION_URL; | ||
this.instance.remote = new Remote(url); | ||
} | ||
} | ||
@@ -61,6 +65,3 @@ return this.instance; | ||
let url; | ||
if (typeof process !== "undefined" && process.env != null && process.env.GNZ_AUTH_FUNCTION_URL != null) { | ||
url = process.env.GNZ_AUTH_FUNCTION_URL; | ||
} | ||
else if (cloud === "0") { | ||
if (cloud === "0") { | ||
url = `https://${id}.lambda-url.${region}.on.aws/AuthService`; | ||
@@ -67,0 +68,0 @@ } |
{ | ||
"name": "@genezio/auth", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "SDK for accessing genezio authentication system.", | ||
@@ -5,0 +5,0 @@ "main": "./dist/cjs/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
46147
1114