Scan your whole stack
Are you using @molecule/app-auth-shell-solid?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v1.1.1
@molecule/app-auth-shell-solid was last scanned on 24 Nov 2026 at version 1.1.1. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 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 |
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.
The publisher’s own README, as collected from the registry.
@molecule/app-auth-shell-solid — centered glassmorphic shell for auth pages
(Login, Signup, ForgotPassword, ResetPassword), the Solid 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 JSX props. The shell handles layout, the glass card,
heading/subheading, body, 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. Forms read it via
useAuthFormStateContext(), or use the standalone useAuthFormState
primitive. 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 — AuthShellContainer, AuthShellDecoration, AuthShellCard,
AuthShellHeading, AuthShellFooter, AuthShellBackLink — plus a
two-column family for the 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.tsJSDoc, not this file.
import { AuthShell, useAuthFormStateContext } from '@molecule/app-auth-shell-solid'
import { createSessionStorageProvider } from '@molecule/app-storage-localstorage'
const sessionStore = createSessionStorageProvider({ prefix: 'auth_' })
export function Login() {
const { fields, setField } = useAuthFormStateContext()
return (
<AuthShell
heading="Sign in"
subheading="Welcome back."
brand={<h2>Acme</h2>}
formStateStorage={sessionStore}
footer={<p>No account? Sign up</p>}
>
<form>
<input
value={fields().email ?? ''}
onInput={(e) => setField('email', e.currentTarget.value)}
/>
</form>
</AuthShell>
)
}
feature
npm install @molecule/app-auth-shell-solid @molecule/app-logger @molecule/app-solid @molecule/app-storage @molecule/app-ui @molecule/app-ui-solid solid-js
AuthFormFieldsShared 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
}
UseAuthFormStateOptionsOptions 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
}
AuthFormStateThe value {@link useAuthFormState} returns.
interface AuthFormState {
/** Current field values (email + any shared fields), as an accessor. */
fields: Accessor<AuthFormFields>
/** `true` once the initial read from storage has completed, as an accessor. */
hydrated: Accessor<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
}
AuthFormStateProviderPropsProps for {@link AuthFormStateProvider}.
interface AuthFormStateProviderProps {
/** Children rendered inside the provider. */
children?: JSX.Element
/** 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
}
AuthShellContainerPropsProps accepted by {@link AuthShellContainer}.
interface AuthShellContainerProps {
/** Content rendered inside the container. */
children?: JSX.Element
/** Optional CSS background applied to the container. */
style?: JSX.CSSProperties
/** Extra classes appended after the defaults. */
className?: string
/** Layout direction. Defaults to `'centered'`; pass `'column'` for a vertical stack. */
layout?: 'centered' | 'column'
}
AuthShellCardPropsProps accepted by {@link AuthShellCard}.
interface AuthShellCardProps {
/** Content rendered inside the card. */
children?: JSX.Element
/** 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?: JSX.CSSProperties
}
AuthShellHeadingPropsProps 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?: JSX.CSSProperties
}
AuthShellBackLinkPropsProps 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
}
AuthShellSplitPropsProps accepted by {@link AuthShellSplit}.
interface AuthShellSplitProps extends JSX.HTMLAttributes<HTMLDivElement> {
/** The split row (and optionally a site footer sibling). */
children?: JSX.Element
/** Cosmetic classes (background, text color, font) for the outer container. */
className?: string
}
AuthShellSplitRowPropsProps accepted by {@link AuthShellSplitRow}.
interface AuthShellSplitRowProps extends JSX.HTMLAttributes<HTMLElement> {
/** The brand panel and the card column. */
children?: JSX.Element
/** Layout classes for the row (typically `cm.flex({})` or `cm.grid({ cols: 2 })`). */
className?: string
}
AuthShellPanelPropsProps accepted by {@link AuthShellPanel}.
interface AuthShellPanelProps extends JSX.HTMLAttributes<HTMLElement> {
/** The app's bespoke decoration, wordmark or social proof. */
children?: JSX.Element
/** Cosmetic classes — width ratio, padding, gradient, positioning. */
className?: string
}
AuthShellCardColumnPropsProps accepted by {@link AuthShellCardColumn}.
interface AuthShellCardColumnProps extends JSX.HTMLAttributes<HTMLElement> {
/** The form card content. */
children?: JSX.Element
/** Cosmetic classes — width ratio, padding. */
className?: string
/** Element to render. Defaults to `'section'`. */
as?: 'section' | 'main'
}
AuthShellPropsProps accepted by {@link AuthShell}.
interface AuthShellProps {
/** The heading text. */
heading: string
/** The subheading text. */
subheading: string
/** The form body. */
children?: JSX.Element
/** Optional footer node. */
footer?: JSX.Element
/** Optional brand node rendered above the heading. */
brand?: JSX.Element
/** Optional background decoration node. */
decoration?: JSX.Element
/** 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
}
AuthFormStateProvider(props)Provides a single {@link useAuthFormState} instance to all descendants via Solid's context, so sibling/child auth forms share the same email.
function AuthFormStateProvider(props: AuthFormStateProviderProps): JSX.Element
props — Children plus optional storage provider, key, and seed fields.Returns: The provider component.
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}.
AuthShellContainer(props)Outer full-screen container — centered flex, padded, with optional absolute-positioned background decoration child.
function AuthShellContainer(props: AuthShellContainerProps): JSX.Element
props — Component props (see {@link AuthShellContainerProps}).Returns: The container element.
AuthShellDecoration(props)Absolute-positioned background decoration layer — orbs, mesh gradients, radial glows.
function AuthShellDecoration(props: { children?: JSX.Element }): JSX.Element
props — Component props (the children are the decoration).Returns: The decoration element.
AuthShellCard(props)The centered glassmorphic card surface.
function AuthShellCard(props: AuthShellCardProps): JSX.Element
props — Component props (see {@link AuthShellCardProps}).Returns: The card element.
AuthShellHeading(props)Centered heading block: optional eyebrow + h1 + optional subheading.
function AuthShellHeading(props: AuthShellHeadingProps): JSX.Element
props — Component props (see {@link AuthShellHeadingProps}).Returns: The heading element.
AuthShellFooter(props)Footer inside the card — small text with a top border.
function AuthShellFooter(props: { children?: JSX.Element }): JSX.Element
props — Component props (the children are the footer content).Returns: The footer element.
AuthShellBackLink(props)"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.
function AuthShellBackLink(props: AuthShellBackLinkProps): JSX.Element
props — Component props (see {@link AuthShellBackLinkProps}).Returns: The back-link element.
AuthShellSplit(props)Outer frame for the two-column "decorated brand panel + card" auth layout.
function AuthShellSplit(props: AuthShellSplitProps): JSX.Element
props — Component props (see {@link AuthShellSplitProps}).Returns: The split element.
AuthShellSplitRow(props)The vertically-flexed two-column row inside <AuthShellSplit>.
function AuthShellSplitRow(props: AuthShellSplitRowProps): JSX.Element
props — Component props (see {@link AuthShellSplitRowProps}).Returns: The split-row element.
AuthShellPanel(props)A decorative <aside> that collapses on mobile (the brand-panel half).
function AuthShellPanel(props: AuthShellPanelProps): JSX.Element
props — Component props (see {@link AuthShellPanelProps}).Returns: The panel element.
AuthShellCardColumn(props)A <section> (or <main>, via as) that centers its children on both axes.
function AuthShellCardColumn(props: AuthShellCardColumnProps): JSX.Element
props — Component props (see {@link AuthShellCardColumnProps}).Returns: The card-column element.
AuthShell(props)Convenience preset composing container, decoration, card, heading, footer,
and back-link into a single component. Wraps its content in an
<AuthFormStateProvider>.
function AuthShell(props: AuthShellProps): JSX.Element
props — Component props (see {@link AuthShellProps}).Returns: The preset shell element.
useAuthFormState(options)Solid primitive holding email + shared auth fields, persisted across auth
views via an injectable StorageProvider and cleared on successful auth.
function useAuthFormState(options?: UseAuthFormStateOptions): AuthFormState
options — Optional storage provider, storage key, and seed fields.Returns: The current fields plus setField/setFields/clear and a hydrated flag.
DEFAULT_AUTH_FORM_STATE_KEYDefault storage key for persisted auth form fields.
const DEFAULT_AUTH_FORM_STATE_KEY: 'molecule.auth.form-state'
Peer dependencies:
@molecule/app-logger ^1.0.1@molecule/app-solid ^3.14.0@molecule/app-storage ^1.0.1@molecule/app-ui ^1.3.11@molecule/app-ui-solid ^1.1.0solid-js ^1.8.0@molecule/app-logger@molecule/app-solid@molecule/app-storage@molecule/app-ui@molecule/app-ui-solidsolid-jsAuthShell renders the binding's router <Link> ("Back to home") by
default, so it MUST be rendered under a MoleculeProvider whose config has a
router; pass showBackLink={false} in router-less setups. The back link's
arrow uses the Material Symbols icon font; the glyph span is
aria-hidden="true", so the link's accessible name is its t() label alone.
Form-state persistence defaults to a process-shared in-memory store (survives
route swaps, not reloads) — inject
createSessionStorageProvider() for reload-safe, tab-scoped persistence.
Translations come from the companion @molecule/app-locales-auth-shell
locale bond.
Translation strings are provided by @molecule/app-locales-auth-shell.
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.
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).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.