✅已解决 | Github社会化登录使用问题

问题描述

https://docs.authing.cn/v2/reference/sdk-for-node/authentication/SocialAuthenticationClient.html

重现步骤

const authenticationClient = new AuthenticationClient({
appId: ‘61a24b25124b24612c180d6c’,
appHost: ‘https://playertest.authing.cn/’,
})

  await authenticationClient.social.authorize('github', {
      popup: true,
      onSuccess: (user) => {
          console.log(user)
      },
      onError: (code, message) => {},
  })

{

“statusCode”: 500,

“message”: “Internal server error”

}

附加信息

  • Version:
    “authing-js-sdk”: “^4.23.27”,

  • Platform:
    Google

您好,这里的文档表述不太清楚,第一个参数 provider 应为 『身份源的唯一标识』:


请检查下是否填写正确。

明白了感谢!!!!。。。。。