← Back to list

frontend-auth-integration
by nadeemsangrasi
⭐ 0🍴 0📅 Dec 17, 2025
SKILL.md
name: Frontend Auth Integration description: Integrates Better Auth client with ChatKit UI or custom Next/Vite UI. Adds login/logout buttons, protected routes, session hooks.
Frontend Auth Integration
Instructions
-
Integrate Better Auth client with frontend:
- Set up authentication provider wrapper
- Configure authentication hooks (useAuth, useSession)
- Add login/logout functionality
- Create protected route components
-
Integrate with ChatKit UI:
- Wrap ChatKit with authentication provider
- Add authentication checks before chat access
- Create login overlay if not authenticated
- Include user profile display
-
Create authentication UI components:
- Login form with email/password
- OAuth provider buttons
- User profile dropdown
- Loading and error states
-
Implement protected routes:
- Create authentication middleware
- Redirect unauthenticated users
- Preserve redirect URLs
- Handle session expiration
-
Follow Next.js/React best practices:
- Use proper TypeScript types
- Include proper error boundaries
- Handle loading states
- Follow accessibility standards
Examples
Input: "Create protected chatbot route with Better Auth" Output: Creates React code with:
import { useAuth } from 'better-auth/react'
function ProtectedChatPage() {
const { user, isPending } = useAuth()
if (isPending) {
return <div>Loading...</div>
}
if (!user) {
return <div>Please log in to access the chatbot</div>
}
return <ChatKitPanel />
}
Score
Total Score
50/100
Based on repository quality metrics
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
Reviews
💬
Reviews coming soon