Skip to content

TheOtterlord/astro-auth-example

Repository files navigation

Astro + Auth.js

This is a simple example of how to use Astro with Auth.js using the unofficial Astro Auth.js Adapter to handle authentication.

Check out the live demo or tutorial for more information.

/
├── public/
│   └── favicon.svg
├── src/
│   ├── layouts/
│   │   └── Layout.astro
│   └── pages/
│       └── api/
│           └── auth/
│               └── [...astroAuth].ts
│       └── index.astro
│       └── protected.astro
└── package.json