squarefi-bff-api-module 1.10.13 → 1.11.0
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.js +1 -1
- package/package.json +1 -1
- package/src/api/auth.ts +2 -2
package/dist/api/auth.js
CHANGED
|
@@ -38,7 +38,7 @@ exports.auth = {
|
|
|
38
38
|
});
|
|
39
39
|
},
|
|
40
40
|
},
|
|
41
|
-
telegram: (data) => apiClientFactory_1.
|
|
41
|
+
telegram: (data) => apiClientFactory_1.apiClientV1.postRequest(exports.telegramSignInPath, { data }),
|
|
42
42
|
password: (email, password // check on backend V2
|
|
43
43
|
) => apiClientFactory_1.apiClientV2.postRequest('/auth/sign-in/password/email', {
|
|
44
44
|
data: { email, password },
|
package/package.json
CHANGED
package/src/api/auth.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { API } from './types';
|
|
2
2
|
|
|
3
|
-
import { apiClientV2 } from '../utils/apiClientFactory';
|
|
3
|
+
import { apiClientV1, apiClientV2 } from '../utils/apiClientFactory';
|
|
4
4
|
import { convertPhoneToSupabaseFormat } from '../utils/converters';
|
|
5
5
|
|
|
6
6
|
export const telegramSignInPath = '/auth/sign-in/telegram';
|
|
@@ -30,7 +30,7 @@ export const auth = {
|
|
|
30
30
|
}),
|
|
31
31
|
},
|
|
32
32
|
telegram: (data: API.Auth.Telegram.Signin) =>
|
|
33
|
-
|
|
33
|
+
apiClientV1.postRequest<API.Auth.Tokens>(telegramSignInPath, { data }),
|
|
34
34
|
password: (
|
|
35
35
|
email: string,
|
|
36
36
|
password: string // check on backend V2
|