Skip to content

The example repository is maintained from a monorepo. Pull Requests should be opened against nextauthjs/next-auth.


SolidStart Auth - Example App

Open Source. Full Stack. Own Your Data.

npm Bundle Size Downloads TypeScript

Overview

This is the official SolidStart Auth example for Auth.js.

Getting started

You can follow the guide below, or click the following button to deploy this example to Vercel.

Deploy with Vercel

Installing

pnpm add -D solid-start-vercel
npm i -D solid-start-vercel
yarn add -D solid-start-vercel

Adding to Vite config

import solid from "solid-start/vite"
import dotenv from "dotenv"
import { defineConfig } from "vite"
// @ts-expect-error no typing
import vercel from "solid-start-vercel"

export default defineConfig(() => {
  dotenv.config()
  return {
    plugins: [solid({ ssr: true, adapter: vercel({ edge: false }) })],
  }
})

Environment Variables

  • ENABLE_VC_BUILD=1 .

Finishing up

Create a GitHub repo and push the code to it, then deploy it to Vercel.

关于

Example showing how to use Auth.js with SolidStart.

Topics

Resources

Code of conduct

Contributing

安全 policy

Stars

24 stars

关注者

0 watching

复刻s

Sponsor this project

Used by

贡献者

Languages