https://github.com/yash0z/hono-nextauth
Hono integration with NextAuth(Authjs)
https://github.com/yash0z/hono-nextauth
authjs authjs-template hono nextjs
Last synced: about 1 year ago
JSON representation
Hono integration with NextAuth(Authjs)
- Host: GitHub
- URL: https://github.com/yash0z/hono-nextauth
- Owner: Yash0z
- Created: 2024-10-28T13:15:31.000Z (over 1 year ago)
- Default Branch: trunk
- Last Pushed: 2024-11-01T04:44:15.000Z (over 1 year ago)
- Last Synced: 2025-02-08T21:25:13.605Z (over 1 year ago)
- Topics: authjs, authjs-template, hono, nextjs
- Language: TypeScript
- Homepage: https://hono-next-auth-levf.vercel.app/
- Size: 516 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Hono.js with NextAuth.js Integration
This project demonstrates how to integrate **Hono.js** with **NextAuth.js** for authentication in a Next.js application. Hono.js serves as the backend, providing lightweight, high-performance API handling, while NextAuth.js manages secure authentication with various providers.
## Getting Started
###
### 1. Project Setup
```
git clone https://github.com/Yash0z/Hono-NextAuth.git
cd Hono-NextAuth
npm install
```
### 2. Env configuration
Create a .env.local file in the Next.js project root and configure environment variables for your authentication providers:
```
AUTH_URL = ""
AUTH_SECRET = ""
GITHUB_ID = ""
GITHUB_SECRET = ""
AUTH_GOOGLE_ID = ""
AUTH_GOOGLE_SECRET = ""
```
You can add details for more providers (e.g. Apple, Twitter, Discord, Email, etc).
#
### Live Example
url : hono-next-auth-levf.vercel.app/
#
### Thank You :>