Packages

@clerk/nuxt

3.1.24 · 14 Nov 2026MIT36.2k / weekRepositoryHomepagenpmAtom feed

Your version

1.2.0

18 Feb 2025Where it was published

1.13.35 is the newest release of 1.x.

In short

1 new1 fixed4 internal

Security

2 advisories affect 1.2.0; 1.13.29 fixes them

Release note

Minor Changes

  • Introduce getAuth() helper to retrieve authentication state from the event object.

    Example:

    import { getAuth } from '@clerk/nuxt/server';
    
    export default eventHandler(event => {
      const { userId } = getAuth(event);
    
      if (!userId) {
        // User is not authenticated
      }
    });

Patch Changes

  • Re-export error handling utilities from @clerk/shared

    Example:

    <script setup lang="ts">
    import { useSignIn } from '@clerk/vue';
    import { isClerkAPIResponseError } from '@clerk/vue/errors';
    
    // ... form state refs and other setup ...
    const { signIn } = useSignIn();
    
    const handleSubmit = async () => {
      try {
        const signInAttempt = await signIn.value.create({
          identifier: email.value,
          password: password.value,
        });
        // ... handle successful sign in ...
      } catch (err) {
        // Type guard to safely handle Clerk API errors
        if (isClerkAPIResponseError(err)) {
          errors.value = err.errors; // err.errors is properly typed as ClerkAPIError[]
        }
      }
    };
    </script>
    
    <template>
      <!-- Form template here -->
    </template>

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.