Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@molecule/app-auth-shell-vue

Latest version: v1.1.1

Overview

Last scanned
24 Nov 2026
Published
24 Nov 2026
npm package Publisher: vialoh
45 Stars
4 Forks
4 Versions
476 Downloads
TypeScript Repo language

Scan summary

@molecule/app-auth-shell-vue was last scanned on 24 Nov 2026 at version 1.1.1. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 4 versions, all published within 7 days (18–24 Nov 2026).
  • Findings: No rules fired in version 1.1.1.
  • Downloads: 476 downloads.

Versions

4 versions published
Versions and the rules that fired in each
VersionPublishedStatus
1.1.1 LATEST 24 Nov 2026 No rules fired
1.1.0 19 Nov 2026 No rules fired
0.0.1-stage 18 Nov 2026 No rules fired
0.0.0-stage 18 Nov 2026 Not shown

No rules fired in 1.1.1

Findings

Findings for v1.1.1. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 1.1.1; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

@molecule/app-auth-shell-vue

@molecule/app-auth-shell-vue — centered glassmorphic shell for auth pages (Login, Signup, ForgotPassword, ResetPassword), the Vue counterpart of @molecule/app-auth-shell-react: the same exports, the same props (React names), and the same DOM for the same input.

Apps pass per-app decoration (orbs, gradient backdrop) and brand (logo + tagline) as node slots or props. The shell handles layout, the glass card, heading/subheading, body slot, footer, and the "Back to home" link.

The shell also provides its content through <AuthFormStateProvider>, so any form rendered inside inherits cross-view email persistence — the email typed on one auth view (Login/Signup/Forgot/Reset) is carried to the next and cleared on successful auth. Forms read it via useAuthFormStateContext(); the underlying useAuthFormState composable is also exported for standalone use. Persistence flows through the @molecule/app-storage StorageProvider abstraction (never raw sessionStorage), defaulting to a process-shared in-memory store.

Besides the AuthShell preset, the package exports the composable primitives it is built from — AuthShellContainer, AuthShellDecoration, AuthShellCard, AuthShellHeading, AuthShellFooter, AuthShellBackLink — plus a two-column family for the "brand panel + form card" split layout: AuthShellSplit > AuthShellSplitRow > (AuthShellPanel + AuthShellCardColumn).

Auto-generated, AI-first package reference for the molecule.dev ecosystem. It is written to be read by coding agents as much as by people, and is generated from this package's source — edit src/index.ts JSDoc, not this file.

Quick Start

import { defineComponent, h } from 'vue'
import { AuthShell, useAuthFormStateContext } from '@molecule/app-auth-shell-vue'
import { createSessionStorageProvider } from '@molecule/app-storage-localstorage'

const sessionStore = createSessionStorageProvider({ prefix: 'auth_' })

const LoginForm = defineComponent({
  setup() {
    const { fields, setField, clear } = useAuthFormStateContext()
    return () =>
      h('form', [
        h('input', {
          value: fields.value.email ?? '',
          onInput: (e: Event) => setField('email', (e.target as HTMLInputElement).value),
        }),
      ])
  },
})

const Login = defineComponent({
  setup() {
    return () =>
      h(
        AuthShell,
        {
          heading: 'Sign in',
          subheading: 'Welcome back.',
          brand: h('h2', 'Acme'),
          formStateStorage: sessionStore,
          footer: h('p', 'No account? Sign up'),
        },
        { default: () => [h(LoginForm)] },
      )
  },
})

Type

feature

Installation

npm install @molecule/app-auth-shell-vue @molecule/app-logger @molecule/app-storage @molecule/app-ui @molecule/app-ui-vue @molecule/app-vue vue

API

Interfaces
AuthFormFields

Shared auth form field values. email is the canonical cross-view field; additional string fields (e.g. a name carried from Signup) may be stored alongside it.

interface AuthFormFields {
  /** Email address, shared across all auth views. */
  email?: string
  /** Any other shared string field (e.g. `name`). */
  [field: string]: string | undefined
}
UseAuthFormStateOptions

Options for {@link useAuthFormState}.

interface UseAuthFormStateOptions {
  /** Storage provider backing persistence (defaults to a process-shared in-memory provider). */
  storage?: StorageProvider
  /** Storage key for the persisted fields. Defaults to `molecule.auth.form-state`. */
  storageKey?: string
  /** Seed values used before hydration completes / when storage is empty. */
  initialFields?: AuthFormFields
}
AuthFormState

The value {@link useAuthFormState} returns.

interface AuthFormState {
  /** Current field values (email + any shared fields), as a read-only ref. */
  fields: Ref<AuthFormFields>
  /** `true` once the initial read from storage has completed, as a read-only ref. */
  hydrated: Ref<boolean>
  /** Sets a single field and persists the new state. */
  setField: (name: string, value: string) => void
  /** Merges a patch of fields and persists the new state. */
  setFields: (patch: AuthFormFields) => void
  /** Clears all persisted auth form state and removes the storage key. */
  clear: () => void
}
AuthFormStateProviderProps

Props for {@link AuthFormStateProvider}.

interface AuthFormStateProviderProps {
  /** Children rendered inside the provider. */
  children?: VNodeChild
  /** Storage provider backing persistence (defaults to a shared in-memory provider). */
  storage?: StorageProvider
  /** Storage key for the persisted fields. */
  storageKey?: string
  /** Seed values used before hydration / when storage is empty. */
  initialFields?: AuthFormFields
}
AuthShellContainerProps

Props accepted by {@link AuthShellContainer}.

interface AuthShellContainerProps {
  /** Content rendered inside the container. */
  children?: VNodeChild
  /** Optional CSS background applied to the container. */
  style?: CSSProperties
  /** Extra classes appended after the defaults. */
  className?: string
  /** Layout direction. Defaults to `'centered'`; pass `'column'` for a vertical stack. */
  layout?: 'centered' | 'column'
}
AuthShellCardProps

Props accepted by {@link AuthShellCard}.

interface AuthShellCardProps {
  /** Content rendered inside the card. */
  children?: VNodeChild
  /** Override the default glass surface. */
  surfaceClassName?: string
  /** Extra layout classes appended after the flex/padding defaults. */
  className?: string
  /** Override the outer `<main>` wrapper classes. */
  outerClassName?: string
  /** `data-mol-id` pass-through for E2E selectors. */
  dataMolId?: string
  /** Optional CSS style applied to the card's inner surface. */
  style?: CSSProperties
}
AuthShellHeadingProps

Props accepted by {@link AuthShellHeading}.

interface AuthShellHeadingProps {
  /** The heading text. */
  heading: string
  /** Optional subheading paragraph. */
  subheading?: string
  /** Optional small uppercase tag rendered above the heading. */
  eyebrow?: string
  /** Optional override for the h1 className. */
  headingClassName?: string
  /** Optional override for the h1 style. */
  headingStyle?: CSSProperties
}
AuthShellBackLinkProps

Props accepted by {@link AuthShellBackLink}.

interface AuthShellBackLinkProps {
  /** Destination. Defaults to `/`. */
  to?: string
  /** Translated label override; falls back to `auth.backHome` → "Back to home" when absent, empty or blank. */
  label?: string
}
AuthShellSplitProps

Props accepted by {@link AuthShellSplit}.

interface AuthShellSplitProps {
  /** The split row (and optionally a site footer sibling). */
  children?: VNodeChild
  /** Cosmetic classes (background, text color, font) for the outer container. */
  className?: string
}
AuthShellSplitRowProps

Props accepted by {@link AuthShellSplitRow}.

interface AuthShellSplitRowProps {
  /** The brand panel and the card column. */
  children?: VNodeChild
  /** Layout classes for the row (typically `cm.flex({})` or `cm.grid({ cols: 2 })`). */
  className?: string
}
AuthShellPanelProps

Props accepted by {@link AuthShellPanel}.

interface AuthShellPanelProps {
  /** The app's bespoke decoration, wordmark or social proof. */
  children?: VNodeChild
  /** Cosmetic classes — width ratio, padding, gradient, positioning. */
  className?: string
}
AuthShellCardColumnProps

Props accepted by {@link AuthShellCardColumn}.

interface AuthShellCardColumnProps {
  /** The form card content. */
  children?: VNodeChild
  /** Cosmetic classes — width ratio, padding. */
  className?: string
  /** Element to render. Defaults to `'section'`. */
  as?: 'section' | 'main'
}
AuthShellProps

Props accepted by {@link AuthShell}.

interface AuthShellProps {
  /** The heading text. */
  heading: string
  /** The subheading text. */
  subheading: string
  /** The form body. */
  children?: VNodeChild
  /** Optional footer node. */
  footer?: VNodeChild
  /** Optional brand node rendered above the heading. */
  brand?: VNodeChild
  /** Optional background decoration node. */
  decoration?: VNodeChild
  /** Destination of the back link. Defaults to `/`. */
  backTo?: string
  /** Whether to render the back link. Defaults to `true`. */
  showBackLink?: boolean
  /** Storage provider backing cross-view auth form persistence. */
  formStateStorage?: StorageProvider
  /** Storage key for the persisted auth form state. */
  formStateKey?: string
}
Functions
useAuthFormStateContext()

Reads the shared auth form state from the nearest {@link AuthFormStateProvider} (which <AuthShell> renders by default).

function useAuthFormStateContext(): AuthFormState

Returns: The shared {@link AuthFormState}.

useAuthFormState(options)

Vue composable holding email + shared auth fields, persisted across auth views via an injectable StorageProvider and cleared on successful auth.

function useAuthFormState(
  options?: UseAuthFormStateOptions | MaybeRefOrGetter<UseAuthFormStateOptions | undefined>,
): AuthFormState
  • options — Optional storage provider, storage key, and seed fields (a plain object or a getter/ref of them).

Returns: The current fields plus setField/setFields/clear and a hydrated flag.

Constants
AuthFormStateProvider

Provides a single {@link useAuthFormState} instance to all descendants via provide/inject, so sibling/child auth forms share the same email.

const AuthFormStateProvider: DefineComponent<
  ExtractPropTypes<{
    children: null
    storage: null
    storageKey: StringConstructor
    initialFields: null
  }>,
  () => VNode<RendererNode, RendererElement, { [key: string]: any }>[],
  {},
  {},
  {},
  ComponentOptionsMixin,
  ComponentOptionsMixin,
  {},
  string,
  PublicProps,
  Readonly<
    ExtractPropTypes<{
      children: null
      storage: null
      storageKey: StringConstructor
      initialFields: null
    }>
  > &
    Readonly<{}>,
  {},
  {},
  {},
  {},
  string,
  ComponentProvideOptions,
  true,
  {},
  any
>
  • props — Children plus optional storage provider, key, and seed fields.

Returns: The provider component.

AuthShellContainer

Outer full-screen container — centered flex, padded, with optional absolute-positioned background decoration child.

const AuthShellContainer: DefineComponent<
  ExtractPropTypes<{
    className: StringConstructor
    layout: { type: StringConstructor; default: string }
  }>,
  () => VNode,
  {},
  {},
  {},
  ComponentOptionsMixin,
  ComponentOptionsMixin,
  {},
  string,
  PublicProps,
  Readonly<
    ExtractPropTypes<{
      className: StringConstructor
      layout: { type: StringConstructor; default: string }
    }>
  > &
    Readonly<{}>,
  { layout: string },
  {},
  {},
  {},
  string,
  ComponentProvideOptions,
  true,
  {},
  any
>
  • props — Component props (see the exported AuthShellContainerProps).
  • context — The setup context (default slot = children).

Returns: The container component.

AuthShellDecoration

Absolute-positioned background decoration layer — orbs, mesh gradients, radial glows.

const AuthShellDecoration: DefineComponent<
  {},
  () => VNode,
  {},
  {},
  {},
  ComponentOptionsMixin,
  ComponentOptionsMixin,
  {},
  string,
  PublicProps,
  Readonly<{}> & Readonly<{}>,
  {},
  {},
  {},
  {},
  string,
  ComponentProvideOptions,
  true,
  {},
  any
>
  • props — Component props (no data props; the default slot is the content).
  • context — The setup context (default slot = children).

Returns: The decoration component.

AuthShellCard

The centered glassmorphic card surface.

const AuthShellCard: DefineComponent<
  ExtractPropTypes<{
    surfaceClassName: StringConstructor
    className: StringConstructor
    outerClassName: StringConstructor
    dataMolId: StringConstructor
  }>,
  () => VNode,
  {},
  {},
  {},
  ComponentOptionsMixin,
  ComponentOptionsMixin,
  {},
  string,
  PublicProps,
  Readonly<
    ExtractPropTypes<{
      surfaceClassName: StringConstructor
      className: StringConstructor
      outerClassName: StringConstructor
      dataMolId: StringConstructor
    }>
  > &
    Readonly<{}>,
  {},
  {},
  {},
  {},
  string,
  ComponentProvideOptions,
  true,
  {},
  any
>
  • props — Component props (see the exported AuthShellCardProps).
  • context — The setup context (default slot = children; style is an attr).

Returns: The card component.

AuthShellHeading

Centered heading block: optional eyebrow + h1 + optional subheading.

const AuthShellHeading: DefineComponent<
  ExtractPropTypes<{
    heading: { type: StringConstructor; required: true }
    subheading: StringConstructor
    eyebrow: StringConstructor
    headingClassName: StringConstructor
    headingStyle: null
  }>,
  () => VNode,
  {},
  {},
  {},
  ComponentOptionsMixin,
  ComponentOptionsMixin,
  {},
  string,
  PublicProps,
  Readonly<
    ExtractPropTypes<{
      heading: { type: StringConstructor; required: true }
      subheading: StringConstructor
      eyebrow: StringConstructor
      headingClassName: StringConstructor
      headingStyle: null
    }>
  > &
    Readonly<{}>,
  {},
  {},
  {},
  {},
  string,
  ComponentProvideOptions,
  true,
  {},
  any
>
  • props — Component props (see the exported AuthShellHeadingProps).
  • context — The setup context (no slots).

Returns: The heading component.

AuthShellFooter

Footer inside the card — small text with a top border.

const AuthShellFooter: DefineComponent<
  {},
  () => VNode,
  {},
  {},
  {},
  ComponentOptionsMixin,
  ComponentOptionsMixin,
  {},
  string,
  PublicProps,
  Readonly<{}> & Readonly<{}>,
  {},
  {},
  {},
  {},
  string,
  ComponentProvideOptions,
  true,
  {},
  any
>
  • props — Component props (no data props; the default slot is the content).
  • context — The setup context (default slot = children).

Returns: The footer component.

AuthShellBackLink

"Back to home" link (or custom destination) rendered below the card.

The arrow's Material Symbols glyph span is aria-hidden="true", so the link's accessible name is its t() label alone.

const AuthShellBackLink: DefineComponent<
  ExtractPropTypes<{ to: { type: StringConstructor; default: string }; label: StringConstructor }>,
  () => VNode,
  {},
  {},
  {},
  ComponentOptionsMixin,
  ComponentOptionsMixin,
  {},
  string,
  PublicProps,
  Readonly<
    ExtractPropTypes<{ to: { type: StringConstructor; default: string }; label: StringConstructor }>
  > &
    Readonly<{}>,
  { to: string },
  {},
  {},
  {},
  string,
  ComponentProvideOptions,
  true,
  {},
  any
>
  • props — Component props (see the exported AuthShellBackLinkProps).

Returns: The back-link component.

AuthShellSplit

Outer frame for the two-column "decorated brand panel + card" auth layout.

const AuthShellSplit: DefineComponent<
  ExtractPropTypes<{ className: StringConstructor }>,
  () => VNode,
  {},
  {},
  {},
  ComponentOptionsMixin,
  ComponentOptionsMixin,
  {},
  string,
  PublicProps,
  Readonly<ExtractPropTypes<{ className: StringConstructor }>> & Readonly<{}>,
  {},
  {},
  {},
  {},
  string,
  ComponentProvideOptions,
  true,
  {},
  any
>
  • props — Component props (see the exported AuthShellSplitProps).
  • context — The setup context (default slot = children; extra attrs fall through).

Returns: The split component.

AuthShellSplitRow

The vertically-flexed two-column row inside <AuthShellSplit>.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm @molecule/app-auth-shell-vue

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Plug and Pray: Your AI Agents Are Taking Orders From Strangers
Research

Plug and Pray: Your AI Agents Are Taking Orders From Strangers

Ethersphere Hijacked With Crypto Stealing Malware (1)
npm

Ethersphere Hijacked With Crypto Stealing Malware Via Github & npm

PHP2Shell, Day 5 93.6% of Measurable Instances Still Unpatched (1)
Vulnerability Insights

PHP2Shell, Day 5: The Panic Hasn’t Turned Into Patching

Frame 2085668439 (1)
Group 1261154229