Vue
Composables and plugins to add authentication to any Vue.js application.
API reference
Every export is fully typed. The signatures and props below come from the package's own reference documentation, so what is listed here is what the installed version ships.
See the full API reference for every export, its signature and an example.
Composables
useThunderID()(hook): TheuseThunderIDcomposable provides access to the Choreo Identity & Access Management authentication context in Vue applications.
Components
-
<ChangeCredential />(component): TheChangeCredentialcomponent renders a form that lets a signed-in user set a new value for one of their own credentials. -
<Loading />(component): TheLoadingcomponent renders its default slot while the authentication state is being determined. -
<SignInButton />(component): TheSignInButtoncomponent initiates the sign-in flow when clicked. -
<SignOutButton />(component): TheSignOutButtoncomponent signs out the current user, clears their session, and revokes authentication tokens when clicked. -
<SignUpButton />(component): TheSignUpButtoncomponent triggers the sign-up (registration) flow when clicked. -
<SignedIn />(component): TheSignedIncomponent conditionally renders its default slot only when the user is authenticated with Choreo Identity & Access Management. -
<SignedOut />(component): TheSignedOutcomponent conditionally renders its default slot only when the user is not authenticated with Choreo Identity & Access Management. -
<User />(component): TheUsercomponent is a declarative way to access the authenticated user object from the Choreo Identity & Access Management authentication context. -
<UserDropdown />(component): TheUserDropdowncomponent renders an avatar button that opens a dropdown menu with user information and common actions like viewing the profile and signing out. -
<UserProfile />(component): TheUserProfilecomponent renders a complete user profile management interface where users can view and edit their personal information.
Providers
<ThunderIDProvider />(export): TheThunderIDProvideris the root provider component that configures@thunderid/vueand provides Choreo Identity & Access Management context to your entire Vue application.
Get started
Provider, session, and a protected route, start to finish.
Connect your application: Getting started / Connect your application / Vue
The quickstart is maintained alongside the rest of the getting-started guides so it stays in step with the platform. This page covers the package itself.
Guides
Task-focused walkthroughs maintained alongside the SDK.
-
Accessing Protected APIs: Make authenticated HTTP requests from a Vue application using the Browser SDK's built-in HTTP client.
-
Protecting Routes: Secure routes in a Vue application by requiring authentication before rendering protected views.
Was this page helpful?