react-directus

Home > react-directus > DirectusAuthHook > logout

DirectusAuthHook.logout property

Logout the user. If successful, the user will be removed from the context. Else, an error will be thrown.

Signature:

logout: () => Promise<void>;