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
answered 5/13/2025
Your Answer
You need to be logged in to answer this question.
Sign in to Answer