mirror of
https://github.com/chillpadclub/bedolaga-cabinet.git
synced 2026-07-30 02:23:47 +00:00
Add files via upload
This commit is contained in:
@@ -42,6 +42,17 @@ export const authApi = {
|
|||||||
return response.data
|
return response.data
|
||||||
},
|
},
|
||||||
|
|
||||||
|
// Register standalone email account (no Telegram required)
|
||||||
|
registerEmailStandalone: async (data: {
|
||||||
|
email: string
|
||||||
|
password: string
|
||||||
|
first_name?: string
|
||||||
|
language?: string
|
||||||
|
}): Promise<AuthResponse> => {
|
||||||
|
const response = await apiClient.post<AuthResponse>('/cabinet/auth/email/register/standalone', data)
|
||||||
|
return response.data
|
||||||
|
},
|
||||||
|
|
||||||
// Verify email
|
// Verify email
|
||||||
verifyEmail: async (token: string): Promise<{ message: string }> => {
|
verifyEmail: async (token: string): Promise<{ message: string }> => {
|
||||||
const response = await apiClient.post('/cabinet/auth/email/verify', { token })
|
const response = await apiClient.post('/cabinet/auth/email/verify', { token })
|
||||||
|
|||||||
Reference in New Issue
Block a user