Home > react-directus > DirectusAuthHook > login
Login the user. If successful, the user will be stored in the context. Else, an error will be thrown.
Signature:
login: (email: string, password: string) => Promise<void>;