feat: JWT 검증 엔드포인트 추가 (POST /api/auth/verify)
All checks were successful
Server CI/CD / deploy (push) Successful in 1m17s

게임 서버가 클라이언트로부터 받은 JWT를 웹 서버에 전달하면,
서명 검증 + Redis 세션 확인 후 userId와 username을 응답한다.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-04 13:13:26 +09:00
parent 2996e0fa0f
commit d6abac3f0a
3 changed files with 46 additions and 0 deletions

View File

@@ -21,6 +21,7 @@ func Register(
a.Post("/register", authH.Register)
a.Post("/login", authH.Login)
a.Post("/logout", middleware.Auth, authH.Logout)
a.Post("/verify", authH.VerifyToken)
// Users (admin only)
u := api.Group("/users", middleware.Auth, middleware.AdminOnly)