← Back to list

api-fetch-with-auth
by Jawad-Chaudhary
The Evolution of Todo: A spec-driven, AI-native journey from a Python CLI to a Cloud-Native, Event-Driven AI Chatbot deployed on Kubernetes. Built with Claude Code, Spec-Kit Plus, Next.js, FastAPI, and Dapr.
⭐ 0🍴 0📅 Jan 22, 2026
SKILL.md
name: api-fetch-with-auth description: Create authenticated API fetch function in Next.js. Use for frontend API calls.
APIFetchWithAuth Instructions
Input: Endpoint, method, body. Output: Fetch function. Steps:
- Import getSession from better-auth/nextjs.
- Attach Bearer token.
Example Code:
import { getSession } from 'better-auth/nextjs';
async function apiFetch(url: string, method: string, body?: any) {
const session = await getSession();
const token = session?.token;
return fetch(url, {
method,
headers: { Authorization:
Bearer ${token}}, body: body ? JSON.stringify(body) : undefined, }); }
Score
Total Score
50/100
Based on repository quality metrics
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
✓説明文
100文字以上の説明がある
+10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
Reviews
💬
Reviews coming soon