Skip to main content
API Reference / modelence / client / loginWithPassword
loginWithPassword(options): Promise<null | User>
Defined in: packages/modelence/src/auth/client/index.ts:45 Login a user with an email and password.

Example

await loginWithPassword({ email: 'test@example.com', password: '12345678' });

Parameters

ParameterTypeDescription
options{ email: string; password: string; }-
options.emailstringThe email of the user.
options.passwordstringThe password of the user.

Returns

Promise<null | User>