webapp/src/stores/auth.ts
Ilya Y 784bb435c3
Feature/lint (#317)
* prettier

---------

Co-authored-by: Igor Lobanov <igor.lobanov@onetwotrip.com>
2023-11-14 18:10:00 +03:00

30 lines
445 B
TypeScript

import { apiClient } from '../utils/apiClient'
export const register = async ({
name,
email,
password,
}: {
name: string
email: string
password: string
}) => {
await apiClient.authRegister({
name,
email,
password,
})
}
export const signSendLink = async ({
email,
lang,
template,
}: {
email: string
lang: string
template: string
}) => {
return await apiClient.authSendLink({ email, lang, template })
}