-
Notifications
You must be signed in to change notification settings - Fork 6
Feat: 구글 간편 로그인 기능 구현 #80
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
Conversation
| <div className="flex gap-4"> | ||
| <Link href="https://accounts.google.com/o/oauth2/v2/auth?scope=openid%20profile%20email&response_type=token&redirect_uri=http://localhost:3000/google&client_id=1079911783112-7rg5ecp9ia9lorm7pit0m2nb2ti1rpt0.apps.googleusercontent.com"> | ||
| <Link | ||
| href={`https://accounts.google.com/o/oauth2/v2/auth?scope=https://www.googleapis.com/auth/userinfo.profile&response_type=code&redirect_uri=http://localhost:3000/api/auth/sign-in/google&client_id=${process.env.GOOGLE_CLIENT_ID}`} |
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.
GOOGLE_CLIENT_ID는 .env 파일에서 관리하는거죠? 한번 공유 주시면 좋겠습니다 : )
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.
아이디 생성 과정에 대해서 말씀하시는거죠?? 팀 미팅때 공유해드리겠습니당~
hongggyelim
left a comment
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.
Oauth 인증 관련 흐름만 대략 알고있었는데 코드도 작성할게 은근 많아보이네요 수고하셨습니다 !
99minji
left a comment
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.
나중에 간편 로그인 구현할 때 많은 도움이 될 것 같습니닷! 감사합니다 👍
| .post("/api/auth/sign-up/google", { | ||
| name: "박문균", | ||
| token: accessToken, | ||
| redirectUri: "http://localhost:3000/google", | ||
| }) |
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.
테스트 하기 위해 name 을 고정으로 넣어보신 건가욧!?
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.
아 이 페이지는 없애야하는 데 깜빡했네여 merge하기 전에 수정해서 push할게욥
📌 작업 내용