@genezio/auth
Advanced tools
Comparing version 2.1.0 to 2.1.1-dev
@@ -197,10 +197,10 @@ /** | ||
/** | ||
* @method web3Login | ||
* @description Method that can be used to obtain a login token for a giving user. | ||
* @param {string} address The user's address. | ||
* @param {string} signature The signature of the nonce. | ||
* @returns {Promise<UserLoginResponse>} An object containing the user's information and the token. | ||
*/ | ||
* @method web3Login | ||
* @description Method that can be used to obtain a login token for a giving user. | ||
* @param {string} address The user's address. | ||
* @param {string} signature The signature of the nonce. | ||
* @returns {Promise<UserLoginResponse>} An object containing the user's information and the token. | ||
*/ | ||
web3Login(address: string, signature: string): Promise<UserLoginResponse>; | ||
} | ||
export { Remote }; |
@@ -118,3 +118,3 @@ "use strict"; | ||
var _a = token.split("-"), cloud = _a[0], rest = _a.slice(1); | ||
var id = rest.join('-'); | ||
var id = rest.join("-"); | ||
var url; | ||
@@ -125,2 +125,4 @@ if (cloud === "0") { | ||
else if (cloud === "1") { | ||
if (process.env["NODE_ENV"] === "dev") | ||
region = "dev-fkt"; | ||
url = "https://".concat(id, ".").concat(region, ".cloud.genez.io"); | ||
@@ -458,8 +460,8 @@ } | ||
/** | ||
* @method web3Login | ||
* @description Method that can be used to obtain a login token for a giving user. | ||
* @param {string} address The user's address. | ||
* @param {string} signature The signature of the nonce. | ||
* @returns {Promise<UserLoginResponse>} An object containing the user's information and the token. | ||
*/ | ||
* @method web3Login | ||
* @description Method that can be used to obtain a login token for a giving user. | ||
* @param {string} address The user's address. | ||
* @param {string} signature The signature of the nonce. | ||
* @returns {Promise<UserLoginResponse>} An object containing the user's information and the token. | ||
*/ | ||
AuthService.prototype.web3Login = function (address, signature) { | ||
@@ -466,0 +468,0 @@ return __awaiter(this, void 0, void 0, function () { |
import { Remote } from "./remote.js"; | ||
export { Remote }; |
@@ -0,0 +0,0 @@ "use strict"; |
import { Remote } from "./remote.node.js"; | ||
export { Remote }; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ { |
{ | ||
"name": "@genezio/auth", | ||
"version": "2.1.0", | ||
"version": "2.1.1-dev", | ||
"description": "SDK for accessing genezio authentication system.", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
@@ -0,0 +0,0 @@ <div align="center"> |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
57488
989
2
5
4