hello.js을 사용하여 클라이언트의 소셜 네트워크 사용자와 로그인합니다. 모두 예상대로 작동하지만 지금은 서버의 클라이언트 자격 증명을 사용해야하므로 refresh_token
도 필요합니다.hellojs에서 refresh_token 가져 오기
그래서, docs을 다음
Unlike Implicit grant; Explicit grant may return the refresh_token.
그리고 login
방법 옵션에서 :
그래서 나는response_type: Implicit (token) or Explicit (code) Grant flow
init
방법에 옵션
response_type: 'code'
을 추가했다.
"The client_id "xxxxxxxxxxxxxxxxx" is unknown"
: 내가 어떤 소셜 네트워크로 로그인하려고 할 때이 오류가 지금
Persist the tokens or acquire a Refresh Token for continued access
하지만, :
또한, 나는 범위 offline_access
(scope docs (마지막))를 추가 이것은 이상한데, 왜냐하면 client_id가 맞으므로이 옵션을 제거하면 예상대로 작동합니다.
아무 것도 없거나 버그입니까?
감사합니다. 나는 또한'force' 옵션을 true로 설정해야했습니다. – Manolo