Interface: UseLoginReturn
Properties
error
error:
string|null
Last unexpected error message (network, server) — credential failures land in userErrors instead.
isLoggingIn
isLoggingIn:
boolean
true while a login request is in flight.
login
login: (
password) =>Promise<LoginResult>
Submit the login form. Resolves with {success, userErrors} rather than throwing on credential failures.
Parameters
email
string
password
string
Returns
Promise<LoginResult>