-
Notifications
You must be signed in to change notification settings - Fork 0
Feat/#185: 구글 로그인 & 회원가입 #191
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
Changes from 28 commits
01c0e5f
528d6e3
c2472e0
0dcf5a6
9e08f07
a914672
346a772
1be5606
a31f29b
da83e3a
9d7c990
f543ca0
0d3338f
7565528
4785042
3ffa49b
947abdf
c358012
dfc7757
b8573e3
09c625c
f5ffcec
4861c5f
3ac3e78
a7e6efc
f51ad81
43e628b
fea6663
305ae66
2d342bb
fba1da2
15fc895
b067b27
3e8b04d
15244b9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
This file was deleted.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,7 @@ | ||
| import React from 'react'; | ||
| import { JoinForm } from '@/features/Join'; | ||
| import { Metadata } from 'next'; | ||
| import GoogleJoinForm from '@/features/Join/components/GoogleJoinForm'; | ||
|
|
||
| export const metadata: Metadata = { | ||
| title: '회원가입', | ||
|
|
@@ -12,8 +13,10 @@ export const metadata: Metadata = { | |
| }, | ||
| }; | ||
|
|
||
| function JoinPage() { | ||
| return <JoinForm />; | ||
| function JoinPage({ searchParams }: { searchParams: { type: string } }) { | ||
| const { type } = searchParams; | ||
|
|
||
| return type === 'google' ? <GoogleJoinForm /> : <JoinForm />; | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 구글 로그인은 회원가입 플로우가 단축돼서 별도 컴포넌트로 만들었어요 |
||
| } | ||
|
|
||
| export default JoinPage; | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| // import { NextRequest } from 'next/server'; | ||
| // import { NextResponse } from 'next/server'; | ||
|
|
||
| // export async function POST(request: NextRequest) { | ||
| // const { authorization_code } = await request.json(); | ||
| // return NextResponse.json({ | ||
| // result: false, | ||
| // email: 'test@test.com', | ||
| // is_registerd: false, | ||
| // login_type: null, | ||
| // email_verified_token: | ||
| // 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6ImZ1bGZpbGxlZDc0MThAZ21haWwuY29tIiwidGFyZ2V0Ijoic2lnblVwIiwiaWF0IjoxNzUwMzQzNjI2LCJleHAiOjE3NTA0MzAwMjYsInN1YiI6InZlcmlmeUVtYWlsQ29kZSJ9.WDfsAF3npSC3NKkOSOjmtkKazGIY4gfneFxz6zs2-qE', | ||
| // }); | ||
| // } |
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.
여기서만 사용되는데 handleGoogleAuth라고 한번 더 감싸야 하는 이유가 있나요?
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.
그렇긴 하네요 바로 handleGoogleSignIn 해도 될듯