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

ログイン機能とトークン管理機能を追加 #104

Open
3 tasks
dorimu0 opened this issue Apr 17, 2024 · 0 comments
Open
3 tasks

ログイン機能とトークン管理機能を追加 #104

dorimu0 opened this issue Apr 17, 2024 · 0 comments
Assignees
Labels
📬 API 서버 API 통신 ✨ Feature 기능 개발 🎨 Html&css 마크업 & 스타일링 ⏰ P2 활발하게 고려해야 하는 이슈나 개선사항 ✅ Test test 관련(storybook, jest...)

Comments

@dorimu0
Copy link
Contributor

dorimu0 commented Apr 17, 2024

📝 Issueの概要

  • このissueの目標は、ユーザーがログインに成功した場合、ユーザーデータとトークンを受け取った後、トークンを利用してApiを要求することです。

📚 背景情報

  • ユーザーがログイン時、データを読み込んで、読み込んだトークンを通じてapiリクエストを送信し、access-tokenが期限切れになるとrefresh-tokenを使用してトークンを再発行することです。

📋 具体的な作業内容

  1. ソーシャルログイン機能追加
  2. トークンをheaderに載せてapiリクエストを送る関数を追加。
  3. access-tokenの有効期限が切れたら、refresh-tokenを使用してトークンを再発行されるコードを追加

📎 関連するIssueやTrello、ドキュメント

🖼️ 参考スクリーンショットや図

  • なし

🔄 Issueの進行状況

  • ソーシャルログイン機能追加
  • トークンをheaderに載せてapiリクエストを送る関数を追加。
  • access-tokenの有効期限が切れたら、refresh-tokenを使用してトークンを再発行されるコードを追加
@dorimu0 dorimu0 added 🎨 Html&css 마크업 & 스타일링 ✅ Test test 관련(storybook, jest...) 📬 API 서버 API 통신 ✨ Feature 기능 개발 ⏰ P2 활발하게 고려해야 하는 이슈나 개선사항 labels Apr 17, 2024
@dorimu0 dorimu0 self-assigned this Apr 17, 2024
@dorimu0 dorimu0 moved this to In review in ミノリ Apr 17, 2024
@dorimu0 dorimu0 moved this from In review to In progress in ミノリ Apr 17, 2024
dorimu0 added a commit to dorimu0/project_minori-next-deployment-repo that referenced this issue Apr 19, 2024
- Create  RecoilRootContainer component and apply common layout
- Add user and token state required for login
- Add the required interface for recoilRootContainer

Related issue: YJU-OKURA#104
dorimu0 added a commit to dorimu0/project_minori-next-deployment-repo that referenced this issue Apr 19, 2024
- Added Google Social Login API.
- Create component to perform redirect and login success handle API requests on successful login.
- Create a function to add a token to the axios header on successful login.
- Create function to reissue token use refresh token when an access token expires

Related issue: YJU-OKURA#104
dorimu0 added a commit to dorimu0/project_minori-next-deployment-repo that referenced this issue Apr 19, 2024
- Define user information, tokens, and login-data interface
- Manage interfaces in the index file

Related issue: YJU-OKURA#104
dorimu0 added a commit to dorimu0/project_minori-next-deployment-repo that referenced this issue Apr 22, 2024
- Create a component that checks login status at the top
- Modify the navbar component to match the login state

Related issue: YJU-OKURA#104
dorimu0 added a commit to dorimu0/project_minori-next-deployment-repo that referenced this issue Apr 23, 2024
- Fixed the tokens on the nest and gin servers to be associated so that requests are sent with the same token
- Fix to clear data from intro on logout

Related issue: YJU-OKURA#104
dorimu0 added a commit to dorimu0/project_minori-next-deployment-repo that referenced this issue Apr 23, 2024
- Add API to get class user information via cid passed as a query
- Modify login state management logic
- Add permission enum for class user

Related issue: YJU-OKURA#104
dorimu0 added a commit to dorimu0/project_minori-next-deployment-repo that referenced this issue Apr 23, 2024
- Modify API requests based on the specified class user on prompt and material pages.
- Fix to get locally stored token in postPrompt function

Related issue: YJU-OKURA#104
dorimu0 added a commit to dorimu0/project_minori-next-deployment-repo that referenced this issue Nov 15, 2024
- Added Line social login in addition to existing Google social login
- Fixed API and page related to Line Social Login

Related issue: YJU-OKURA#104
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📬 API 서버 API 통신 ✨ Feature 기능 개발 🎨 Html&css 마크업 & 스타일링 ⏰ P2 활발하게 고려해야 하는 이슈나 개선사항 ✅ Test test 관련(storybook, jest...)
Projects
Status: In progress
Development

No branches or pull requests

1 participant