Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/hangton-code/auth-js-toolkit
- Owner: Hangton-Code
- Created: 2024-02-15T13:58:27.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-03-03T03:46:35.000Z (9 months ago)
- Last Synced: 2024-10-11T01:43:45.517Z (about 1 month ago)
- Topics: authenication, authjs, authorization, minio, next-auth, nextjs, nextjs14, prisma, resend, shadcn-ui, t3-stack, tailwindcss, trpc, typescript
- Language: TypeScript
- Homepage:
- Size: 449 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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`