On this page

Integrations

SolidStart Integration

Integrate Entro Auth with SolidStart.

Before you start, make sure you have a Entro Auth instance configured. If you haven't done that yet, check out the installation.

Mount the handler

We need to mount the handler to SolidStart server. Put the following code in your [...auth].ts file inside /routes/api/auth folder.

[...auth].ts
import { auth } from "~/lib/auth";
import { toSolidStartHandler } from "@entro314labs/entro-auth/solid-start";

export const { GET, POST } = toSolidStartHandler(auth);