webapp/src/stores/auth.ts

30 lines
445 B
TypeScript
Raw Normal View History

2022-11-14 10:02:08 +00:00
import { apiClient } from '../utils/apiClient'
export const register = async ({
name,
email,
password,
2022-11-14 10:02:08 +00:00
}: {
name: string
email: string
password: string
}) => {
await apiClient.authRegister({
name,
email,
password,
2022-11-14 10:02:08 +00:00
})
}
2022-11-27 19:19:06 +00:00
export const signSendLink = async ({
email,
lang,
template,
2022-11-27 19:19:06 +00:00
}: {
email: string
lang: string
template: string
}) => {
return await apiClient.authSendLink({ email, lang, template })
2022-11-14 10:02:08 +00:00
}