Do you have a Vue module or SDK for Authava?

27 views 1 answers Asked 5/13/2025

I'm building a frontend in Vue 3 and was wondering if there's an official Authava Vue SDK or module available? Has anyone integrated Authava with Nuxt or Vue.js before? I'm looking for session handling, login, and authentication flow support.

J

Jack

asked 5/13/2025

1 Answer

Accepted Answer

Not yet โ€” but support is on our roadmap!

Right now, we offer @authava/client, a powerful TypeScript SDK that works seamlessly with:

  • โœ… React (first-class support with full session lifecycle helpers)
  • โœ… Deno (fully compatible with native module system)
  • โœ… Node.js (ideal for server-side validation and automation workflows)
  • ๐Ÿงช Vue (can be used today via manual integration โ€” see below)

Example: Using @authava/client in a Vue 3 component

<script setup lang="ts">
import { ref, onMounted } from 'vue'
import { AuthavaClient } from '@authava/client'

const session = ref(null)
const loading = ref(true)

const authava = new AuthavaClient({
  domain: 'auth.authava.com',
  secure: true,
  autoRefresh: true,
  debug: false,
})

onMounted(async () => {
  const currentSession = await authava.getSession()
  session.value = currentSession
  loading.value = false
})
</script>

<template>
  <div v-if="loading">Loading session...</div>
  <div v-else-if="session">
    <p>Welcome back, {{ session.user.name }}!</p>
  </div>
  <div v-else>
    <p>Please log in to continue.</p>
  </div>
</template>

We are actively expanding client library support - including a dedicated Vue wrapper.

Ryan Hein

Ryan Hein

answered 5/13/2025

Ask a Question

Your Answer

You need to be logged in to answer this question.

Sign in to Answer