Skip to content

카카오 로그인 invalid client issue #24

@cmun2

Description

@cmun2

Request hostname 과 Redirect hostname 이 동일 해야 합니다.

즉, React 에서 [localhost:3000](http://localhost:3000) 에서 [localhost:3000/token](http://localhost:3000/token) 으로 넘겨 주는 방식으로 구현을 했어야 했습니다.

/ 경로에서 a href=’oauth/authorize’ 를 통해서 로그인 창을 열고 로그인을 실행하면 Redirect URI 로 지정된 /signin 으로 302 Redirect 가 되게 됩니다.

queryString 으로 나온 ?code=토큰값 을 추출해서 다음의 axios 코드를 실행

  • code 는 인가 코드로 알 수 없는 문자열을 준다…

image

위 단계를 진행했을 때 다음과 같은 에러가 발생

image

Metadata

Metadata

Labels

documentationImprovements or additions to documentation

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions