Skip to content
Back to skills

Auth Debugging

ASecurity

NextAuth kimlik doğrulama sorunlarını çözmek için

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 27, 2026
code-qualitybashdebuggingdatabase

Security analysis

A96/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro shows the line behind each finding and how to fix it

Scanned September 27, 2026

npx -y skills add David-Li0406/meta-skill-evloving --skill auth-debugging --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Auth Debugging?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Auth Debugging
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/david-li0406-auth-debugging/badge)](https://www.skillsdirectory.com/skills/david-li0406-auth-debugging)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: Auth Debugging
description: NextAuth kimlik doğrulama sorunlarını çözmek için
---

# Auth Debugging Skill

## Yaygın Hatalar ve Çözümleri

### ERR_TOO_MANY_REDIRECTS
**Neden:** Middleware'de sonsuz redirect döngüsü
**Çözüm:**
1. `middleware.ts` → matcher'a `/login` ekle
2. `auth.config.ts` → duplicate redirect kontrollerini kaldır

### 500 Server Error (credentials)
**Neden:** AUTH_SECRET eksik veya bcryptjs yüklü değil
**Çözüm:**
```bash
# .env dosyasına ekle
AUTH_SECRET=random-32-karakter-string

# bcryptjs yükle
npm install bcryptjs
```

### "Hatalı e-posta veya şifre"
**Neden:** Kullanıcı veritabanında yok veya şifre hash'i yanlış
**Çözüm:** Yeni kullanıcı oluştur (database-ops skill'e bak)

## Fallback Admin Bilgileri
auth.ts dosyasında hardcoded:
- Email: `admin@prosektorweb.com` (veya ADMIN_EMAIL env)
- Şifre: `6509d6d5a0e97a0c8d79c76e` (veya ADMIN_PASSWORD env)

## Giriş URL'leri
- `/login` → Müşteri girişi → /portal'a yönlendirir
- `/yonetim-girisi` → Admin girişi → /admin'e yönlendirir

## Debug Logları
```bash
pm2 logs --lines 30 | grep -i "auth\|credential\|error"
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…