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

타페이지에서 인증 안 돼서 인증페지이로 접근 시, 이메일 인증 완료 후 해당 페이지로 이동 #361

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ars-ki-00
Copy link
Collaborator

Summary

Description

Screenshots

Focus

References

@ars-ki-00 ars-ki-00 self-assigned this Jul 7, 2024
@ars-ki-00 ars-ki-00 requested a review from a team as a code owner July 7, 2024 06:35
Copy link
Member

@woohm402 woohm402 left a comment

Choose a reason for hiding this comment

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

👍

@@ -23,6 +23,7 @@ const TIMER_DURATION = APP_ENV === 'test' ? 3 * SECOND : 180 * SECOND;

export const MailVerifyImpl = () => {
const router = useRouter();
const from = router.query.from as string;
Copy link
Member

@woohm402 woohm402 Jul 8, 2024

Choose a reason for hiding this comment

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

Suggested change
const from = router.query.from as string;
const from = router.query.from as string | undefined;

가 맞을듯? string[] 은 발생할 일 거의 없으니 무시한다 쳐도 undefined 는 무시하면 안될거같어

if (!is_email_verified && emailVerification === 'verified') {
const url = context.req.url;
const params = new URLSearchParams();
url && !url.startsWith('/main') && params.set('from', url);
Copy link
Member

Choose a reason for hiding this comment

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

여기 'from' 이라는 문자열이 이 파일이랑 mainVerifyImpl/index.tsx 에서 지식의 중복이 일어난 것 같은데 src/entities/ 같은 데다가 export const EMAIL_VERIFY_FROM_KEY = 'from' 이런 식으로 상수로 빼면 좋을거같습니다

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

Successfully merging this pull request may close these issues.

2 participants