tek-wallet 0.0.1 → 0.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/dist/app/api/auth/[...nextauth]/functions/refreshTokenKeycloak.js +2 -2
- package/dist/app/api/auth/[...nextauth]/route.js +1 -1
- package/dist/components/views/CreateWalletView/index.js +2 -2
- package/dist/components/views/ImportWalletView/index.js +1 -1
- package/dist/services/axios/clients/generalRequest.js +1 -1
- package/dist/services/axios/clients/userClientRequest.js +1 -1
- package/dist/services/axios/get-balance-service/getBalanceService.js +1 -1
- package/package.json +1 -1
|
@@ -48,11 +48,11 @@ var refreshTokenKeycloak = function (token) { return __awaiter(void 0, void 0, v
|
|
|
48
48
|
switch (_b.label) {
|
|
49
49
|
case 0:
|
|
50
50
|
_b.trys.push([0, 3, , 4]);
|
|
51
|
-
return [4 /*yield*/, axios_1.default.post("".concat(process.env.
|
|
51
|
+
return [4 /*yield*/, axios_1.default.post("".concat(process.env.NEXT_PUBLIC_TEK_WALLET_REFRESH_TOKEN_URL), {
|
|
52
52
|
refresh_token: token || "",
|
|
53
53
|
}, {
|
|
54
54
|
headers: {
|
|
55
|
-
"x-api-key": process.env.
|
|
55
|
+
"x-api-key": process.env.NEXT_PUBLIC_TEK_WALLET_API_KEY || "",
|
|
56
56
|
},
|
|
57
57
|
})];
|
|
58
58
|
case 1:
|
|
@@ -88,7 +88,7 @@ var handler = (0, next_auth_1.default)({
|
|
|
88
88
|
session: {
|
|
89
89
|
strategy: "jwt",
|
|
90
90
|
},
|
|
91
|
-
secret: process.env.
|
|
91
|
+
secret: process.env.NEXT_PUBLIC_TEK_WALLET_AUTH_SECRET,
|
|
92
92
|
callbacks: {
|
|
93
93
|
jwt: function (_a) {
|
|
94
94
|
return __awaiter(this, arguments, void 0, function (_b) {
|
|
@@ -141,7 +141,7 @@ var ImportWalletView = function (props) {
|
|
|
141
141
|
if (value.length === passcodeLength) {
|
|
142
142
|
handleCreateWallet({
|
|
143
143
|
passcode: value,
|
|
144
|
-
appSlug: process.env.
|
|
144
|
+
appSlug: process.env.NEXT_PUBLIC_TEK_WALLET_APP_SLUG || "",
|
|
145
145
|
});
|
|
146
146
|
}
|
|
147
147
|
};
|
|
@@ -163,7 +163,7 @@ var ImportWalletView = function (props) {
|
|
|
163
163
|
if (!data.success) return [3 /*break*/, 2];
|
|
164
164
|
seed_pharse = (data === null || data === void 0 ? void 0 : data.data).seed_pharse;
|
|
165
165
|
return [4 /*yield*/, (0, react_3.signIn)("credentials", {
|
|
166
|
-
app_slugs: process.env.
|
|
166
|
+
app_slugs: process.env.NEXT_PUBLIC_TEK_WALLET_APP_SLUG || "",
|
|
167
167
|
seed_pharse: seed_pharse,
|
|
168
168
|
redirect: false,
|
|
169
169
|
})];
|
|
@@ -75,7 +75,7 @@ var CreateWalletView = function (props) {
|
|
|
75
75
|
delay = new Promise(function (resolve) { return setTimeout(resolve, 1000); });
|
|
76
76
|
return [4 /*yield*/, (0, react_3.signIn)("credentials", {
|
|
77
77
|
seed_pharse: seedPhrase,
|
|
78
|
-
app_slugs: process.env.
|
|
78
|
+
app_slugs: process.env.NEXT_PUBLIC_TEK_WALLET_APP_SLUG || "",
|
|
79
79
|
redirect: false,
|
|
80
80
|
})];
|
|
81
81
|
case 1:
|
|
@@ -5,7 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
var axios_1 = __importDefault(require("axios"));
|
|
7
7
|
var generalRequest = axios_1.default.create({
|
|
8
|
-
baseURL: "".concat(process.env.
|
|
8
|
+
baseURL: "".concat(process.env.NEXT_PUBLIC_TEK_WALLET_SERVER_URL),
|
|
9
9
|
timeout: 600000,
|
|
10
10
|
});
|
|
11
11
|
exports.default = generalRequest;
|
|
@@ -7,7 +7,7 @@ exports.setAuthToken = void 0;
|
|
|
7
7
|
var axios_1 = __importDefault(require("axios"));
|
|
8
8
|
var currentAccessToken = "";
|
|
9
9
|
var userClientRequest = axios_1.default.create({
|
|
10
|
-
baseURL: "".concat(process.env.
|
|
10
|
+
baseURL: "".concat(process.env.NEXT_PUBLIC_TEK_WALLET_SERVER_URL),
|
|
11
11
|
timeout: 600000,
|
|
12
12
|
});
|
|
13
13
|
var setAuthToken = function (token) {
|
|
@@ -47,7 +47,7 @@ var getBalanceService = function () { return __awaiter(void 0, void 0, void 0, f
|
|
|
47
47
|
switch (_b.label) {
|
|
48
48
|
case 0: return [4 /*yield*/, userClientRequest_1.default.get("/wallets/detail", {
|
|
49
49
|
headers: {
|
|
50
|
-
"app-slug": process.env.
|
|
50
|
+
"app-slug": process.env.NEXT_PUBLIC_TEK_WALLET_APP_SLUG || "",
|
|
51
51
|
"content-type": "application/json",
|
|
52
52
|
accept: "application/json",
|
|
53
53
|
},
|