Skip to content

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

Open
ars-ki-00 wants to merge 1 commit into
mainfrom
feature/add_redirect_after_verify
Open

타페이지에서 인증 안 돼서 인증페지이로 접근 시, 이메일 인증 완료 후 해당 페이지로 이동#361
ars-ki-00 wants to merge 1 commit into
mainfrom
feature/add_redirect_after_verify

Conversation

@ars-ki-00
Copy link
Copy Markdown
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
Copy Markdown
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.

👍


export const MailVerifyImpl = () => {
const router = useRouter();
const from = router.query.from as string;
Copy link
Copy Markdown
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
Copy Markdown
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