mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 12:56:41 +07:00
telegram: added telegram attach functionality
This commit is contained in:
parent
3e9f5dedec
commit
e994176bff
10 changed files with 131 additions and 9 deletions
|
@ -1,3 +1,5 @@
|
|||
import { TelegramUser } from '@v9v/ts-react-telegram-login';
|
||||
|
||||
import {
|
||||
ApiAttachSocialRequest,
|
||||
ApiAttachSocialResult,
|
||||
|
@ -98,3 +100,6 @@ export const apiLoginWithSocial = ({
|
|||
password,
|
||||
})
|
||||
.then(cleanResult);
|
||||
|
||||
export const apiAttachTelegram = (data: TelegramUser) =>
|
||||
api.post(API.USER.ATTACH_TELEGRAM, data);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue