Reference / @getenginex/sdk-vue / useEnginex
useEnginex()
useEnginex():
EnginexClient
Core client given to the app's EnginexPlugin.
Returns
The same EnginexClient passed to the plugin.
Throws
If called in an app without the EnginexPlugin, outside setup() (or app.runWithContext), or with the app's vue-query using another QueryClient.
Example
ts
const enginex = useEnginex()
const onLogout = () => enginex.auth.logout()