function getUserByEmail
getUserByEmail(email: string): User | null

Returns the local user whose email is email, in any case, or null, for requestPasswordReset. An account from another instance has no password here to reset.

Parameters

email: string

Return Type

User | null

Usage

import { getUserByEmail } from "api/services/user-service.ts";