feat: name scope 추가 및 에러 페이지에 카카오 마이페이지 버튼 추가

- 카카오 동의항목에서 name이 이미 승인되어 scope에 추가
- 에러 페이지(이미 적립된 영수증 등)에 '내 마일리지 확인하기' 카카오 버튼 추가
- 에러 발생 시에도 자연스럽게 마이페이지로 이동 가능

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
thug0bin 2026-02-25 02:54:54 +09:00
parent eb44701410
commit 62632cb7b8
2 changed files with 10 additions and 2 deletions

View File

@ -39,7 +39,7 @@ class KakaoAPIClient:
'client_id': self.client_id,
'redirect_uri': self.redirect_uri,
'response_type': 'code',
'scope': 'profile_nickname,profile_image,account_email'
'scope': 'profile_nickname,profile_image,account_email,name'
}
if state:

View File

@ -88,7 +88,15 @@
<div class="error-icon">⚠️</div>
<div class="error-title">문제가 발생했어요</div>
<div class="error-message">{{ message }}</div>
<a href="/" class="btn-home">홈으로 이동</a>
<div style="display: flex; flex-direction: column; gap: 12px;">
<a href="/my-page/kakao/start" style="display: flex; align-items: center; justify-content: center; gap: 8px; padding: 16px 32px; background: #FEE500; color: #191919; text-decoration: none; border-radius: 14px; font-size: 16px; font-weight: 700; letter-spacing: -0.2px; transition: all 0.2s ease;">
<svg width="18" height="18" viewBox="0 0 20 20" fill="none">
<path d="M10 1C4.477 1 0 4.477 0 8.5c0 2.58 1.693 4.847 4.243 6.134l-1.084 3.97a.3.3 0 00.457.338L7.7 16.392c.75.112 1.52.17 2.3.17 5.523 0 10-3.477 10-7.562C20 4.477 15.523 1 10 1z" fill="#191919"/>
</svg>
내 마일리지 확인하기
</a>
<a href="/" class="btn-home">홈으로 이동</a>
</div>
</div>
</body>
</html>