tiny-stack
tiny-stack copied to clipboard
Added Auth.js based authentication
What's been changed?
- Added
astro-auth
integration- Created Auth.js config (
auth.config.ts
) with GitHub provider by default + Drizzle database adapter - Added dependencies
-
@auth/core
-
@auth/drizzle-adapter
-
auth-astro
-
- Added Auth.js schemas to Drizzle
- Added types for the new schemas added above
- Added new migration to add schemas / tables required for authentication
- Added sign out button to
CommentForm
component - Added new
/login
page - Homepage now redirects to
/login
if not logged in
- Created Auth.js config (
- Added basic
.example.env
with template environment variables - Added a
defaultName
prop toCommentForm
component - Added custom environment variable types to
env.d.ts