gohorsejobs/frontend/src
Tiago Yamamoto 340911b4d1 feat(auth): add cookie parsing and JWT auth guard to backoffice
- Add JWT auth guard with Bearer token and cookie support
- Update .env.example files with PASSWORD_PEPPER documentation
- Update seeder to use PASSWORD_PEPPER for password hashing
- Update seeder README with hash verification examples
- Fix frontend auth and page components
- Update backend JWT service and seed migration
2025-12-24 10:27:04 -03:00
..
app feat(auth): add cookie parsing and JWT auth guard to backoffice 2025-12-24 10:27:04 -03:00
components feat: implement dynamic dashboard, auth hardening (pepper/httponly) and backend tests 2025-12-24 01:30:33 -03:00
contexts first commit 2025-12-09 19:04:48 -03:00
hooks first commit 2025-12-09 19:04:48 -03:00
i18n fix(i18n): Correct nesting of company object in es.json 2025-12-23 15:40:37 -03:00
lib feat(auth): add cookie parsing and JWT auth guard to backoffice 2025-12-24 10:27:04 -03:00
README.md docs: complete project documentation overhaul 2025-12-09 19:36:36 -03:00

Frontend Source

Código fonte do frontend Next.js.


📁 Estrutura

Diretório Descrição
app/ App Router - páginas e layouts
components/ Componentes React reutilizáveis
contexts/ React Contexts (Auth, Theme)
hooks/ Custom hooks
lib/ Utilitários e configurações

🔑 Contextos

AuthContext.tsx

Gerencia autenticação global:

  • Estado do usuário logado
  • Funções de login/logout
  • Token JWT em localStorage

🪝 Hooks

Hook Descrição
useAuth Acesso ao contexto de autenticação
useProfile Gerenciamento de perfil de usuário

📦 Lib

Arquivo Descrição
utils.ts Funções helper (cn, formatDate)
api.ts Cliente HTTP para backend