Home > react-directus > DirectusAuthHook > logout
Logout the user. If successful, the user will be removed from the context. Else, an error will be thrown.
Signature:
logout: () => Promise<void>;