chore: fix lint issues, remove unused hasAvatar
This commit is contained in:
@@ -92,13 +92,11 @@ export const loginFx = createEffect(async (params: { email: string; password: st
|
||||
return data.user
|
||||
})
|
||||
|
||||
export const registerFx = createEffect(
|
||||
async (params: { email: string; password: string; displayName?: string }) => {
|
||||
const { data } = await apiClient.post<{ token: string; user: AuthUser }>('auth/register', params)
|
||||
tokenSet(data.token)
|
||||
return data.user
|
||||
},
|
||||
)
|
||||
export const registerFx = createEffect(async (params: { email: string; password: string; displayName?: string }) => {
|
||||
const { data } = await apiClient.post<{ token: string; user: AuthUser }>('auth/register', params)
|
||||
tokenSet(data.token)
|
||||
return data.user
|
||||
})
|
||||
|
||||
export const fetchAuthMethodsFx = createEffect(async () => {
|
||||
const { data } = await apiClient.get<{ methods: AuthMethod[] }>('me/auth-methods')
|
||||
|
||||
Reference in New Issue
Block a user