Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weโ€™ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User info desktop/#81 #83

Merged
merged 9 commits into from
Apr 21, 2024
Merged

User info desktop/#81 #83

merged 9 commits into from
Apr 21, 2024

Conversation

seonghunYang
Copy link
Collaborator

@seonghunYang seonghunYang commented Apr 18, 2024

๐Ÿ“Œ ์ž‘์—… ๋‚ด์šฉ

๊ตฌํ˜„ ๋‚ด์šฉ ๋ฐ ์ž‘์—… ํ–ˆ๋˜ ๋‚ด์—ญ

  • ๋งˆ์ดํŽ˜์ด์ง€์— ์œ ์ € ์ •๋ณด๋ฅผ ๋ณด์—ฌ์ฃผ๋Š” ์ปดํฌ๋„ŒํŠธ๋ฅผ ๊ฐœ๋ฐœํ•˜์˜€์Šต๋‹ˆ๋‹ค.
  • Suspense๋กœ ๊ฐ์‹ธ๊ณ , fallback ์ปดํฌ๋„ŒํŠธ๋กœ ์Šค์ผˆ๋ ˆํ†ค์ด ๋ณด์ด๋„๋ก ์„ค์ •ํ•˜์˜€์Šต๋‹ˆ๋‹ค.
  • ๋ชจ๋ฐ”์ผ ๋ฒ„์ „์—์„œ๋Š” draw์—์„œ ์œ ์ € ์ •๋ณด๊ฐ€ ๋ณด์—ฌ์ง€๋ฉฐ, ์ด๋ฅผ ๊ตฌํ˜„ํ•˜๋Š” ๊ฒƒ์ด ๋‹ค์Œ ๊ณ„ํš์ž…๋‹ˆ๋‹ค.

๐Ÿค” ๊ณ ๋ฏผ ํ–ˆ๋˜ ๋ถ€๋ถ„

  • mypage๋กœ ์ด๋™ํ•  ๋•Œ ๋กœ๊ทธ์ธ์ด ์•ˆ๋˜์–ด ์žˆ์œผ๋ฉด error ์ปดํฌ๋„ŒํŠธ๋กœ ๋ฆฌ๋‹ค์ด๋ ‰ํŠธ ๋  ๊ฒƒ์ž…๋‹ˆ๋‹ค. ์ด ๊ธฐ๋Šฅ์„ ๋น„ํ™œ์„ฑํ™”ํ• ๊นŒ ์ƒ๊ฐํ–ˆ์ง€๋งŒ, sign-in ํŽ˜์ด์ง€์—์„œ admin/admin์„ ํ•œ ๋ฒˆ๋งŒ ์ž…๋ ฅํ•˜๋ฉด ๋˜๋Š” ๋ถ€๋ถ„์ด๋ผ ๊ทธ๋Œ€๋กœ ๋‘์—ˆ์Šต๋‹ˆ๋‹ค. ๋‹ค๋ฅธ ๋ถ„๋“ค์ด ๊ฐœ๋ฐœํ•  ๋•Œ ์ธ์ฆ ๋ฌธ์ œ๋กœ ์ธํ•ด ํŽ˜์ด์ง€๊ฐ€ ์ด๋™๋˜๋ฉด ๋กœ๊ทธ์ธ ํ•œ๋ฒˆ๋งŒ ํ•ด์ฃผ์‹œ๋ฉด ๋ฉ๋‹ˆ๋‹ค.

Copy link

Copy link
Member

@gahyuun gahyuun left a comment

Choose a reason for hiding this comment

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

๊ณ ์ƒํ•˜์…จ์Šต๋‹ˆ๋‹ค~!

@@ -33,12 +33,12 @@ export const userHandlers = [
}),
http.get<never, never, UserInfoResponse | ErrorResponseData>(`${API_PATH.user}`, async ({ request }) => {
const accessToken = request.headers.get('Authorization')?.replace('Bearer ', '');
if (!accessToken) {
if (accessToken === 'undefined' || !accessToken) {
Copy link
Member

Choose a reason for hiding this comment

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

accessToken ์ด "undefined"์ธ ๊ฒฝ์šฐ์— ๋Œ€ํ•ด ์„ค๋ช…ํ•ด์ฃผ์‹ค ์ˆ˜ ์žˆ๋‚˜์š”??

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

headers: {
        Authorization: `Bearer ${cookies().get('accessToken')?.value}`,
      },
  • ์œ„์™€ ๊ฐ™์ด ํ—ค๋”๋ฅผ ์ถ”๊ฐ€ํ•˜๋‹ค ๋ณด๋‹ˆ, accessToken์ด ์—†๋Š” ๊ฒฝ์šฐ์— 'undefined'๊ฐ€ ๋ฆฌํ„ฐ๋Ÿด ๊ฐ’์œผ๋กœ ๋“ค์–ด๊ฐ€๋Š” ๊ฒฝ์šฐ๋ฅผ ํ™•์ธํ•˜์˜€๊ณ , ์ด์— ๋”ฐ๋ผ ์ˆ˜์ •ํ•˜์˜€์Šต๋‹ˆ๋‹ค.

gahyuun
gahyuun previously approved these changes Apr 19, 2024
yougyung
yougyung previously approved these changes Apr 19, 2024
Copy link
Member

Choose a reason for hiding this comment

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

๋„๋ฉ”์ธ์ปดํฌ๋„ŒํŠธ์— ์œ„์น˜์‹œํ‚ค์‹  ์ด์œ ๊ฐ€ ๊ถ๊ธˆํ•ด์š” !

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

  • ๊ทผ์ฒ˜์— ์œ„์น˜์‹œํ‚ค๊ณ  ์‹ถ์€ ์˜๋„๊ฐ€ ์žˆ์—ˆ๋Š”๋ฐ, ๋ง์”€ํ•˜์‹  ๋Œ€๋กœ ์ด๋Ÿฌ๋ฉด ๋„๋ฉ”์ธ ์ปดํฌ๋„ŒํŠธ๋กœ ์˜คํ•ดํ•  ์ˆ˜ ์žˆ์œผ๋‹ˆ, ๊ฐ™์€ ํŒŒ์ผ์— ์œ„์น˜ํ•˜๋„๋ก ์ˆ˜์ •ํ–ˆ์Šต๋‹ˆ๋‹ค. ๊ณ ๋ง™์Šต๋‹ˆ๋‹ค

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@seonghunYang seonghunYang dismissed stale reviews from yougyung and gahyuun via a2266a7 April 20, 2024 03:21
Copy link

@seonghunYang seonghunYang merged commit 3d48eb0 into main Apr 21, 2024
2 of 3 checks passed
@seonghunYang seonghunYang deleted the user-info-desktop/#81 branch April 21, 2024 03:26
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.

3 participants