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