react-directus

Home > react-directus > DirectusAuthHook > login

DirectusAuthHook.login property

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>;