Skip to content

Feat/#3/auth client#15

Merged
halionaz merged 2 commits into
devfrom
feat/#3/auth-client
Jun 30, 2025
Merged

Feat/#3/auth client#15
halionaz merged 2 commits into
devfrom
feat/#3/auth-client

Conversation

@halionaz

Copy link
Copy Markdown
Member

โ— ์—ฐ๊ด€ ์ด์Šˆ

๐Ÿ“Œ ๋‚ด์šฉ

  • ์ค‘์š” !
  • ๋กœ๊ทธ์ธ ๊ด€๋ จ PR์ž…๋‹ˆ๋‹ค

โ˜‘๏ธ ์ฒดํฌ ์‚ฌํ•ญ & ๋…ผ์˜ ์‚ฌํ•ญ

  • [ ]

@halionaz halionaz requested review from Copilot and jw0202058 June 30, 2025 11:21
@halionaz halionaz merged commit 6860df7 into dev Jun 30, 2025

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds an authentication client with automatic token refreshing and introduces a TestAPIButton component (with its hook and styles) to manually check login status.

  • Introduce axios client with refresh-token interceptor
  • Add useGetIsLogin hook for login status queries
  • Create TestAPIButton component and integrate it on the HomePage

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
src/pages/HomePage/index.tsx Imported and rendered the new TestAPIButton alongside login links
src/common/utils/client.ts Set up axios client with baseURL, JSON headers, credentials, and 401-refresh interceptor
src/common/hooks/apis/useGetIsLogin.ts New React Query hook to fetch login status (/api/test/is-login)
src/common/components/TestAPIButton/style.css.ts CSS-in-JS styling for TestAPIButton
src/common/components/TestAPIButton/index.tsx Implemented the button to trigger the login-status refetch
Comments suppressed due to low confidence (1)

src/common/hooks/apis/useGetIsLogin.ts:9

  • Add unit tests for useGetIsLogin to validate behavior when enabled is false, and ensure refetch triggers the expected API call.
const useGetIsLogin = () => {

Comment thread src/common/utils/client.ts
Comment thread src/common/utils/client.ts
Comment thread src/pages/HomePage/index.tsx
Comment thread src/common/components/TestAPIButton/index.tsx
Comment thread src/common/components/TestAPIButton/style.css.ts
@halionaz halionaz deleted the feat/#3/auth-client branch June 30, 2025 15:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ํšŒ์›๊ฐ€์ž…&๋กœ๊ทธ์ธ ๊ด€๋ฆฌ

2 participants