@zitadel/vue

Wraps vue-oidc-client to provide a simple interface for ZITADEL
32,961
Install
npm install @zitadel/vue
Latest Version:1.1.7
License:MIT
Last Updated:Sep 4, 2025
Links: npm
Maintainer: mridang

ZITADEL Vue SDK

Authenticate your ZITADEL users within your Vue applications.

NPM Version NPM License PRs Welcome

Getting Started

Features

The NPM package @zitadel/vue wraps the NPM package vue-oidc-client. All vue-oidc-client features are available and the whole configuration can be overridden.

The following features are added to vue-oidc-client

The following is an example for a minimal OIDC configuration:

const zitadelAuth = createZITADELAuth({
   issuer: `${myZITADELInstancesOrigin}`,
   client_id: `${myApplicationsClientID}`,
   project_resource_id: `${myApplicationsProjectResourceID}`,
   organization_id: `${myApplicationsOrganizationID}`, // optional
})

The following defaults apply:

  • The OIDC Code Flow with PKCE is used for authentication at ZITADEL.
  • ZITADELs user info endpoint is called to enrich the user profile.
  • The access token is refreshed automatically by default before it expires.
  • If you specify a project_resource_id, the scopes for retrieving the users roles from the user info endpoint are added automatically. You can conveniently use zitadelAuth.hasRole("someRoleKey").

Optional:

  • add an organization_id to register and login users directly in the organization scope.

Related Packages

@zitadel/vue-auth

A comprehensive authentication integration for Vue applications with TypeScript...

2,151 27
@zitadel/nuxt-auth

A comprehensive authentication integration for Nuxt 4 applications with TypeScri...

1,627 1
casdoor-vue-sdk

Vue client SDK for Casdoor

21,991 16
vue3-oidc

vue3-oidc

60,233 47
@lunora/nuxt

OIDC trusted publishing setup package for @lunora/nuxt

33,443

Version History

Version Released License
1.1.7 MIT
1.1.6 MIT
1.1.5 MIT
1.1.4 MIT
1.1.3 MIT