Reference / @getenginex/sdk-react / useEnginex
useEnginex()
useEnginex():
EnginexClient
Core client given to the nearest EnginexProvider.
Returns
The same EnginexClient passed to the provider.
Throws
If called outside an EnginexProvider.
Example
ts
const enginex = useEnginex()
const onLogout = () => enginex.auth.logout()