Skip to content

[App] Github Login 추가 #325

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

Open
wants to merge 12 commits into
base: feat/app-settting
Choose a base branch
from

Conversation

sumi-0011
Copy link
Member

💡 기능

  • RN내에서 Github 로그인 기능을 추가하였습니다.
  • APP에서 외부 외부 웹 페이지(webview에서 다른 웹 x)를 열고 로그인 성공 후 서비스로 다시 돌아와 Access token을 발급받는 과정까지 처리하였습니다.

🔎 기타

  • Apple login 작업을 추가하며 한번에 리팩토링하려고 합니다. 해당 PR에서는 로그인이 잘 동작하는지를 위주로 작업하였습니다.

@sumi-0011 sumi-0011 self-assigned this May 1, 2025
@sumi-0011 sumi-0011 requested a review from hyesungoh as a code owner May 1, 2025 09:50
Copy link

coderabbitai bot commented May 1, 2025

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Member

@hyesungoh hyesungoh left a comment

Choose a reason for hiding this comment

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

아직 TBD인 거 같은 부분이 보이긴 하는데, 일단 고고 ~~

Comment on lines +13 to +24
useEffect(() => {
// 첫 렌더링에서는 리다이렉트 스킵
if (isFirstRender.current) {
isFirstRender.current = false;
return;
}

// 이후 렌더링에서만 리다이렉트 수행
if (!isAuthenticated) {
router.replace('/auth/login');
}
}, [isAuthenticated]);
Copy link
Member

Choose a reason for hiding this comment

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

왜 이렇게 해야하는지까지 주석에 넣으면 어떨까염??

Comment on lines +26 to +33
const onPressLogout = async () => {
try {
await logout();
router.replace('/auth/login');
} catch (error) {
console.error('로그아웃 실패:', error);
}
};
Copy link
Member

Choose a reason for hiding this comment

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

이러면 사용자는 로그아웃 버튼을 눌러도 아무런 변화를 느낄 수 없지 않을까염??

Comment on lines +62 to +75
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#fff',
},
safeArea: {
backgroundColor: '#f8f9fa',
},
header: {
backgroundColor: '#f8f9fa',
borderBottomWidth: 1,
borderBottomColor: '#e9ecef',
...Platform.select({
ios: {
Copy link
Member

Choose a reason for hiding this comment

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

각각 다른 변수로 뺄 수 있을 거 같은데, 하나의 객체로 만드신 이유가 궁금해용

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants