Lightlines
By clerk

clerk-vue-patterns

clerk13.3k installs

Keep Clerk login state reactive in your Vue app.

What it does

Guides implementation of Clerk authentication in Vue 3 apps using reactive composables, protected routes, and shared auth stores.

When to use it

Use for Clerk composables, Vue Router authentication guards, or Pinia authentication integration in Vue apps.

How to use it

It changes how the agent implements Clerk authentication in Vue projects, providing patterns for composables, route guards, and Pinia stores.

What you provide

  • An existing project

Uses

Latest review

What you need · 3

The patterns require the Clerk Vue SDK, version 2 or later, in a Vue 3 app.

The application uses Vue 3, with createApp imported from vue.

The app reads the Clerk publishable key through import.meta.env and passes it to clerkPlugin; the template errors if it is missing.


Access · 0

No additional actions listed.