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

๐Ÿ›Bug ๊ฐ•์ œ ํŽ˜์ด์ง€ ์ƒˆ๋กœ๊ณ ์นจ์„ ํ•˜์ง€ ์•Š์œผ๋ฉด useSession ์‚ฌ์šฉ์„ ํ†ตํ•œ session ๋ถˆ๋Ÿฌ์˜ค๊ธฐ๊ฐ€ ์ž‘๋™๋˜์ง€ ์•Š๋Š” ๋ฌธ์ œ #140

Open
qpsqps123 opened this issue Aug 26, 2024 · 0 comments
Assignees

Comments

@qpsqps123
Copy link
Collaborator

qpsqps123 commented Aug 26, 2024

๐Ÿ“‘ ๋ฒ„๊ทธ ์š”์•ฝ

  • ๊ฐ•์ œ ํŽ˜์ด์ง€ ์ƒˆ๋กœ๊ณ ์นจ์„ ํ•˜์ง€ ์•Š์œผ๋ฉด useSession ์‚ฌ์šฉ์„ ํ†ตํ•œ session ๋ถˆ๋Ÿฌ์˜ค๊ธฐ๊ฐ€ ์ž‘๋™๋˜์ง€ ์•Š๋Š” ๋ฌธ์ œ

๐Ÿ“ ์žฌํ˜„ ๊ณผ์ •

  • ๋ฐœ์ƒํ•œ ๋ฒ„๊ทธ๋ฅผ ์žฌํ˜„ํ•˜๊ธฐ ์œ„ํ•ด ํ•„์š”ํ•œ ๊ณผ์ •์„ ์ˆœ์ฐจ์ ์œผ๋กœ ์ž‘์„ฑํ•ด์ฃผ์„ธ์š”.
  1. welcome ํŽ˜์ด์ง€์— next-auth๊ฐ€ ์ œ๊ณตํ•˜๋Š” useSession์„ ์‚ฌ์šฉํ•˜์—ฌ session์„ ๋ณ€์ˆ˜์— ๋‹ด๊ณ  console.log ์กฐํšŒํ•˜๋Š” ์ฝ”๋“œ ์ž‘์„ฑ
  2. credentials์„ ์ด์šฉํ•œ ํšŒ์›๊ฐ€์ž…
  3. ํšŒ์›๊ฐ€์ž…ํ•œ ๊ณ„์ •์œผ๋กœ credentials์„ ์ด์šฉํ•œ ๋กœ๊ทธ์ธ
  4. welcome ํŽ˜์ด์ง€๋กœ ๋ฆฌ๋‹ค์ด๋ ‰ํŠธ๋œ ํ›„ ๊ฐœ๋ฐœ์ž ๋„๊ตฌ๋กœ ์ฐํžŒ session ๋กœ๊ทธ ํ™•์ธ

๐Ÿ˜€ ์˜ฌ๋ฐ”๋ฅธ ๋™์ž‘

  • ์ƒˆ๋กœ๊ณ ์นจ์„ ํ•˜์ง€ ์•Š์•„๋„ session ๊ฐ’์ด ์ •์ƒ์ ์œผ๋กœ ๋“ค์–ด์™€์•ผ ํ•จ

๐Ÿ“ท ์Šคํฌ๋ฆฐ์ƒท ๋ฐ ๋กœ๊ทธ

๐Ÿ“Œ ์ฐธ๊ณ  ์‚ฌํ•ญ

  • next-auth v5๋กœ ์—…๋ฐ์ดํŠธ ๋˜๋ฉฐ ์ƒ๊ธด useSession์ด ๋กœ๊ทธ์ธ ์ดํ›„ ๋‚ด๋ถ€์ ์œผ๋กœ ์ •์ƒ ์ž‘๋™ํ•˜์ง€ ์•Š๋Š” ๋ฌธ์ œ๊ฐ€ ์žˆ๋Š” ๋“ฏ ํ•จ(์ฐธ๊ณ )
@qpsqps123 qpsqps123 self-assigned this Aug 26, 2024
qpsqps123 added a commit to qpsqps123/PODA that referenced this issue Aug 26, 2024
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

No branches or pull requests

1 participant