-
Notifications
You must be signed in to change notification settings - Fork 1
[feat] add login functionality #9
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
Conversation
โฆo/10-Sprint-Taskify into 8-add-login-functionality header sidebarPS C:\Users\๋์น์ฝ\Desktop\taskify\10-Sprint-Taskify> git pull origin 8-add-login-functionality remote: Enumerating objects: 21, done. remote: Counting objects: 100% (21/21), done. remote: Compressing objects: 100% (10/10), done. remote: Total 16 (delta 4), reused 13 (delta 2), pack-reused 0 (from 0) Merge branch '8-add-login-functionality' of https://github.com/najitwo/10-Sprint-Taskify into 8-add-login-functionality the commit. ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ .git/MERGE_MSG[+] [unix] (02:37 16/11/2024) 6,1 All PS C:\Users\๋์น์ฝ\Desktop\taskify\10-Sprint-Taskify> git pull origin 8-add-login-functionality remote: Enumerating objects: 21, done. remote: Counting objects: 100% (21/21), done. remote: Compressing objects: 100% (10/10), done. remote: Total 16 (delta 4), reused 13 (delta 2), pack-reused 0 (from 0) Merge branch '8-add-login-functionality' of https://github.com/najitwo/10-Sprint-Taskify into 8-add-login-functionality the commit. ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ .git/MERGE_MSG[+] [unix] (02:37 16/11/2024) 6,1 All PS C:\Users\๋์น์ฝ\Desktop\taskify\10-Sprint-Taskify> git pull origin 8-add-login-functionality remote: Enumerating objects: 21, done. remote: Counting objects: 100% (21/21), done. remote: Compressing objects: 100% (10/10), done. remote: Total 16 (delta 4), reused 13 (delta 2), pack-reused 0 (from 0) Merge branch '8-add-login-functionality' of https://github.com/najitwo/10-Sprint-Taskify into 8-add-login-functionality the commit. ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ .git/MERGE_MSG[+] [unix] (02:37 16/11/2024) 6,1 All PS C:\Users\๋์น์ฝ\Desktop\taskify\10-Sprint-Taskify> git pull origin 8-add-login-functionality remote: Enumerating objects: 21, done. remote: Counting objects: 100% (21/21), done. remote: Compressing objects: 100% (10/10), done. remote: Total 16 (delta 4), reused 13 (delta 2), pack-reused 0 (from 0) Merge branch '8-add-login-functionality' of https://github.com/najitwo/10-Sprint-Taskify into 8-add-login-functionality the commit. ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ .git/MERGE_MSG[+] [unix] (02:37 16/11/2024) 6,1 All PS C:\Users\๋์น์ฝ\Desktop\taskify\10-Sprint-Taskify> git pull origin 8-add-login-functionality remote: Enumerating objects: 21, done. remote: Counting objects: 100% (21/21), done. remote: Compressing objects: 100% (10/10), done. remote: Total 16 (delta 4), reused 13 (delta 2), pack-reused 0 (from 0) Merge branch '8-add-login-functionality' of https://github.com/najitwo/10-Sprint-Taskify into 8-add-login-functionality the commit. ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ .git/MERGE_MSG[+] [unix] (02:37 16/11/2024) 6,1 All ๏ฟฝ PS C:\Users\๋์น์ฝ\Desktop\taskify\10-Sprint-Taskify> git pull origin 8-add-login-functionality remote: Enumerating objects: 21, done. remote: Counting objects: 100% (21/21), done. remote: Compressing objects: 100% (10/10), done. remote: Total 16 (delta 4), reused 13 (delta 2), pack-reused 0 (from 0) Merge branch '8-add-login-functionality' of https://github.com/najitwo/10-Sprint-Taskify into 8-add-login-functionality the commit. ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ .git/MERGE_MSG[+] [unix] (02:37 16/11/2024) 6,1 All PS C:\Users\๋์น์ฝ\Desktop\taskify\10-Sprint-Taskify> git pull origin 8-add-login-functionality remote: Enumerating objects: 21, done. remote: Counting objects: 100% (21/21), done. remote: Compressing objects: 100% (10/10), done. remote: Total 16 (delta 4), reused 13 (delta 2), pack-reused 0 (from 0) Merge branch '8-add-login-functionality' of https://github.com/najitwo/10-Sprint-Taskify into 8-add-login-functionality the commit. ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ .git/MERGE_MSG[+] [unix] (02:37 16/11/2024) 6,1 All
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
์ฒซ PR ๊ณ ์ํ์
จ์ต๋๋ค. ๐
์ปค๋ฐ ๋ฉ์ธ์ง๊ฐ ์ข ์ ๊ฐ๊ฐ ์ธ ๊ฒ ๊ฐ์ต๋๋ค?๐ค
๋ฌธ์์ ๋ช
์๋ ์ปค๋ฐ ์ปจ๋ฒค์
์ ์ง์ผ์ฃผ์
จ์ผ๋ฉด ์ข๊ฒ ์ต๋๋ค.
src/api/auth/login.ts
Outdated
| const response = await axios.post(`${AUTH_URL}/login`, { email, password }); | ||
| const { accessToken } = response.data; | ||
|
|
||
| localStorage.setItem('accessToken', accessToken); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
๋ก์ปฌ์คํ ๋ฆฌ์ง๋ฅผ ์ฌ์ฉํ์
จ๋๋ฐ ์ ์ฌ์ฉํ์
จ๋์?
๋ก๊ทธ์ธ์์ฒญํ ์๋ต ๋ฐ์๋ accessToken์ด ์ด๋์ ์ ์ฅ๋๋์ง ํ์ธํ์
จ๋์?
์ ํฌ ์ ์ญ ์ํ ๊ด๋ฆฌ๋ zustand ์ฌ์ฉํ๊ธฐ๋ก ํ์ผ๋ zustand๋ก ๊ด๋ฆฌํ๋ ๊ฒ์ ์ถ์ฒ๋๋ ค์.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
zustand๋ฅผ ์ฌ์ฉํด์ ๋ค์ ์์ ํ๊ฒ์ต๋๋ค
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
๋ก๊ทธ์ธ ํ์ด์ง๋ ์ธ์ ๋ง๋์ค ๊ณํ์ด์ ๊ฐ์??
๊ธฐ๋ฅ ๋ง๋ค๋ ํ์ด์ง๊น์ง ๊ฐ์ด ๋ง๋ค์ด ํ
์คํธ ํ์ผ๋ฉด ์ข๊ฒ ์ต๋๋ค. ๐
์ด์ ํ
ํ๋ฆฟ์ผ๋ก ์์ฑํ์ ๊ฑฐ ์๋ฃ๋์
จ์ผ๋ฉด ์ฒดํฌํด์ฃผ์๊ณ
๋ฆฌ๋ทฐ๊ฐ ํ์ํ์๋ฉด ๋ฆฌ๋ทฐ ์ฌ์์ฒญํด์ฃผ์ธ์~
โฆinto 8-add-login-functionality
* feat:add login functionality * refactor: Update login functionality * โจ feat: add zustand store and fix login functionality * ๐ fix: linting issues * ๐ refactor: refactor update types in zustand store * ๐ refactor: update types in zustand store2 * โป๏ธ refactor: authStore for token handling
* feat:add login functionality * refactor: Update login functionality * โจ feat: add zustand store and fix login functionality * ๐ fix: linting issues * ๐ refactor: refactor update types in zustand store * ๐ refactor: update types in zustand store2 * โป๏ธ refactor: authStore for token handling
๐ Related Issue
๐ Description
๐ธ Screenshot
๐ข Notes