ggez-banking-sdk
Advanced tools
Comparing version 0.0.24 to 0.0.25
@@ -20,3 +20,2 @@ "use strict"; | ||
const dataStructure_1 = __importDefault(require("../helper/dataStructure")); | ||
// https://dapi.ggez.one/Service/V1/user | ||
const useAuth = (baseUrl, nodeUrl, userInfo, tokenData, programId, geoCoordinates, lang) => { | ||
@@ -109,3 +108,3 @@ let endPointUser = "V1/user"; | ||
const response = yield restApi_1.default.restApi(baseUrl, "POST", "oauth/token", headers, data); | ||
if (response.data.access_token) { | ||
if (response.data.result === "success" && response.data.access_token) { | ||
return { | ||
@@ -112,0 +111,0 @@ response: response, |
@@ -13,4 +13,4 @@ "use strict"; | ||
const userId = (_a = localStorage.getItem("user_id")) !== null && _a !== void 0 ? _a : "0"; | ||
const source_id = `U.${userId}${timestamp}`; | ||
const source_id = `U.${userId}.${timestamp}`; | ||
return source_id; | ||
} |
{ | ||
"name": "ggez-banking-sdk", | ||
"version": "0.0.24", | ||
"version": "0.0.25", | ||
"description": "A Node.js package to handle GGEZ Banking API endpoints, Simplify the process of managing CRUD operations with this efficient and easy-to-use package.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
793367
25149