This version (v0.7) has not been published to npm yet.
Skip to content

Reference / @getenginex/sdk-react / useEnginex

useEnginex() ​

useEnginex(): EnginexClient

Core client given to the nearest EnginexProvider.

Returns ​

EnginexClient

The same EnginexClient passed to the provider.

Throws ​

If called outside an EnginexProvider.

Example ​

ts
const enginex = useEnginex()
const onLogout = () => enginex.auth.logout()