Skip to main content

Vue SDK

The ThunderID Vue SDK (@thunderid/vue) provides a comprehensive set of components, composables, and utilities to integrate ThunderID authentication and user management into your Vue 3 applications.

Installation

Install the ThunderID Vue SDK using your preferred package manager:

npm install @thunderid/vue

Getting Started

To get started quickly, check out our Vue Quickstart Guide for step-by-step instructions.

Use the redirect-based sign-in flow

Browser SPAs should sign in using the redirect-based OAuth2 authorization_code + PKCE flow. Use the <SignInButton /> component.

Initiating a sign-in flow directly in the browser — the embedded <SignIn /> component or useThunderID().signIn({ applicationId }) used standalone — is not supported for browser SPAs. See Register an application.

Features

Providers

The SDK provides a root provider component that manages authentication state across your application via Vue's provide/inject.

  • <ThunderIDProvider /> - Root provider component that wraps your application and manages authentication state

Components

Pre-built, customizable components for common authentication flows and user management.

Action Components

Control Components

  • <SignedIn /> - Conditionally render content for authenticated users
  • <SignedOut /> - Conditionally render content for unauthenticated users
  • <Loading /> - Display loading state during authentication

User Self-care Components

Composables

Vue composables for programmatic access to authentication and user data.

Customization

All components in the ThunderID Vue SDK are fully customizable. You can:

  • Override default styles using CSS classes or inline styles
  • Customize component behavior through props
  • Build custom components using the provided composables
  • Use scoped slots to control rendering
ThunderID LogoThunderID Logo

Product

DocsAPIsSDKs
© WSO2 LLC. All rights reserved.Privacy PolicyCookie Policy