Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/hangton-code/auth-js-toolkit

This is a Authjs toolkit base on Next Auth v5. With most of the important components to form a comprehensive authenication system for web development.
https://github.com/hangton-code/auth-js-toolkit

authenication authjs authorization minio next-auth nextjs nextjs14 prisma resend shadcn-ui t3-stack tailwindcss trpc typescript

Last synced: 13 days ago
JSON representation

This is a Authjs toolkit base on Next Auth v5. With most of the important components to form a comprehensive authenication system for web development.

Awesome Lists containing this project

README

        

# Introduction

This is a Authjs toolkit base on [Next Auth v5](https://authjs.dev/). With most of the important components to form a comprehensive authenication system for web development.

# Techniques

- T3 Stack (Next.js 14, TRPC, and Tailwind CSS)
- Auth.js (Next Auth v5)
- Shadcn UI
- Resend
- Prisma with MYSQL as default
- MinIO
- and more

# Environment Variables

`.env`

```
DATABASE_URL=
AUTH_SECRET=
GITHUB_CLIENT_ID=
GITHUB_CLIENT_SECRET=
GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=
RESEND_API_KEY=
RESEND_ONBOARDING_EMAIL=
MINIO_ACCESS_KEY=
MINIO_SECRET_KEY=
MINIO_AUTH_BUCKET=
MINIO_END_POINT=
MINIO_APP_URL=
MINIO_PORT=
NEXT_PUBLIC_APP_URL=
```

# Gallery

![](login.png)
![](account.png)

# Remarks

1. Recommend to stay `@tanstack/react-query` at v4 so as to peer with `@trpc/client`
2. Recommend to stay `next-auth` at @5.0.0-beta.4 and `@auth/prisma-adapter` at @1.0.14 respectively so as to make sure the code runs with no error
3. Remember to set a public download access policy for minio avatars folder: `mc anonymous set download //avatars`