@glinr/theauth-vue

Vue 3 composables for TheAuth auth
588 20
Install
npm install @glinr/theauth-vue
Latest Version:0.3.0
Vue:3
License:MIT
Last Updated:Oct 21, 2026
Links: GitHub  ·  npm
Maintainer: gdsks

@glinr/theauth-vue

npm · Source · Docs · All packages

Vue plugin and composables for theAuth authentication.

npm

Part of theAuth, open-source auth for AI agents and humans. Docs: docs.theauth.dev.

Install

npm install @glinr/theauth-vue

Usage

Register the plugin in your Vue app, then use composables in any component.

// main.ts
import { createApp } from 'vue';
import { createTheAuthPlugin } from '@glinr/theauth-vue';
import App from './App.vue';

const app = createApp(App);

app.use(createTheAuthPlugin({
  apiUrl: 'https://auth.yourapp.com',
  tenantId: 'your-tenant-id',
}));

app.mount('#app');
<script setup lang="ts">
import { useSession, useUser, useSignIn, useSignOut } from '@glinr/theauth-vue';

const { session, isLoading } = useSession();
const { user } = useUser();
const { signIn } = useSignIn();
const { signOut } = useSignOut();
</script>

<template>
  <div v-if="!isLoading">
    <p v-if="user">Welcome, {{ user.email }}</p>
    <button v-if="session" @click="signOut">Sign out</button>
  </div>
</template>

Exports

  • createTheAuthPlugin: Vue plugin factory
  • useSession: current session and loading state
  • useUser: authenticated user object
  • useSignIn: sign-in composable
  • useSignOut: sign-out composable
  • useSignUp: sign-up composable
  • useAgents: manage AI agents for the current user

Docs

https://docs.theauth.dev

Community

Discord

Questions and help in the #theauth forum on the GLINR Discord.

License

MIT

Related Packages

@composy/auth-vue

LDesign 认证系统 Vue 3 适配器 / Vue 3 adapter for @composy/auth-core

0
@grantry/vue

Experimental: authentication, accounts and billing state for Vue 3 applications,...

373
@idenzy/vue

Vue bindings for Idenzy: a plugin and useSession, useUser and useIdenzy.

163 0
@resourge/vue3-use-authentication

Vue 3 use Authentication/Permissions hook

4,993 1
@fonderie/vue-auth

Vue composables for Fonderie auth — thin bindings over @fonderie/client.

4,674 5

Version History

Version Released License
0.3.0 MIT
0.2.0 MIT
0.1.0 MIT