squarefi-bff-api-module 1.11.2 → 1.11.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/api/auth.d.ts +1 -1
- package/dist/api/auth.js +3 -3
- package/package.json +1 -1
- package/src/api/auth.ts +4 -4
package/dist/api/auth.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { API } from './types';
|
|
2
|
-
export declare const telegramSignInPath = "/auth/
|
|
2
|
+
export declare const telegramSignInPath = "/auth/sign-in/telegram";
|
|
3
3
|
export declare const telegramSignUpPath = "/auth/sign-up/telegram";
|
|
4
4
|
export declare const refreshTokenPath = "/auth/refresh/refresh-token";
|
|
5
5
|
export declare const auth: {
|
package/dist/api/auth.js
CHANGED
|
@@ -14,8 +14,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
14
14
|
exports.auth = exports.refreshTokenPath = exports.telegramSignUpPath = exports.telegramSignInPath = void 0;
|
|
15
15
|
const apiClientFactory_1 = require("../utils/apiClientFactory");
|
|
16
16
|
const converters_1 = require("../utils/converters");
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
exports.telegramSignInPath = '/auth/sign-in/telegram'; // V2 path
|
|
18
|
+
// export const telegramSignInPath = '/auth/signin/telegram'; // V1 path
|
|
19
19
|
exports.telegramSignUpPath = '/auth/sign-up/telegram';
|
|
20
20
|
exports.refreshTokenPath = '/auth/refresh/refresh-token';
|
|
21
21
|
exports.auth = {
|
|
@@ -39,7 +39,7 @@ exports.auth = {
|
|
|
39
39
|
});
|
|
40
40
|
},
|
|
41
41
|
},
|
|
42
|
-
telegram: (data) => apiClientFactory_1.
|
|
42
|
+
telegram: (data) => apiClientFactory_1.apiClientV2.postRequest(exports.telegramSignInPath, { data }),
|
|
43
43
|
password: (email, password // check on backend V2
|
|
44
44
|
) => apiClientFactory_1.apiClientV2.postRequest('/auth/sign-in/password/email', {
|
|
45
45
|
data: { email, password },
|
package/package.json
CHANGED
package/src/api/auth.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { API } from './types';
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { apiClientV2 } from '../utils/apiClientFactory';
|
|
4
4
|
import { convertPhoneToSupabaseFormat } from '../utils/converters';
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
export const telegramSignInPath = '/auth/signin/telegram'; // V1 path
|
|
6
|
+
export const telegramSignInPath = '/auth/sign-in/telegram'; // V2 path
|
|
7
|
+
// export const telegramSignInPath = '/auth/signin/telegram'; // V1 path
|
|
8
8
|
|
|
9
9
|
export const telegramSignUpPath = '/auth/sign-up/telegram';
|
|
10
10
|
export const refreshTokenPath = '/auth/refresh/refresh-token';
|
|
@@ -32,7 +32,7 @@ export const auth = {
|
|
|
32
32
|
}),
|
|
33
33
|
},
|
|
34
34
|
telegram: (data: API.Auth.Telegram.Signin) =>
|
|
35
|
-
|
|
35
|
+
apiClientV2.postRequest<API.Auth.Tokens>(telegramSignInPath, { data }),
|
|
36
36
|
password: (
|
|
37
37
|
email: string,
|
|
38
38
|
password: string // check on backend V2
|