-
Notifications
You must be signed in to change notification settings - Fork 10
[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
base: feat/app-settting
Are you sure you want to change the base?
Conversation
redirect url을 잘 줘야 하더라
# Conflicts: # pnpm-lock.yaml
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the 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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed 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)
Other keywords and placeholders
Documentation and Community
|
# Conflicts: # pnpm-lock.yaml
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.
아직 TBD인 거 같은 부분이 보이긴 하는데, 일단 고고 ~~
useEffect(() => { | ||
// 첫 렌더링에서는 리다이렉트 스킵 | ||
if (isFirstRender.current) { | ||
isFirstRender.current = false; | ||
return; | ||
} | ||
|
||
// 이후 렌더링에서만 리다이렉트 수행 | ||
if (!isAuthenticated) { | ||
router.replace('/auth/login'); | ||
} | ||
}, [isAuthenticated]); |
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.
왜 이렇게 해야하는지까지 주석에 넣으면 어떨까염??
const onPressLogout = async () => { | ||
try { | ||
await logout(); | ||
router.replace('/auth/login'); | ||
} catch (error) { | ||
console.error('로그아웃 실패:', error); | ||
} | ||
}; |
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.
이러면 사용자는 로그아웃 버튼을 눌러도 아무런 변화를 느낄 수 없지 않을까염??
const styles = StyleSheet.create({ | ||
container: { | ||
flex: 1, | ||
backgroundColor: '#fff', | ||
}, | ||
safeArea: { | ||
backgroundColor: '#f8f9fa', | ||
}, | ||
header: { | ||
backgroundColor: '#f8f9fa', | ||
borderBottomWidth: 1, | ||
borderBottomColor: '#e9ecef', | ||
...Platform.select({ | ||
ios: { |
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.
각각 다른 변수로 뺄 수 있을 거 같은데, 하나의 객체로 만드신 이유가 궁금해용
💡 기능
🔎 기타