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

Reference / @getenginex/sdk-vue / useEnginex

useEnginex() ​

useEnginex(): EnginexClient

Core client given to the app's EnginexPlugin.

Returns ​

EnginexClient

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()