Hi guys... first of all thanks for the great work!...
# talk-kratos
e
Hi guys... first of all thanks for the great work! i am try to implement discord login. but still getting this error..
Copy code
"error": {
    "code": 500,
    "message": "oauth2: cannot fetch token: 401 Unauthorized\nResponse: {\"error\": \"invalid_client\"}",
    "status": "Internal Server Error"
}, is there an example to create a social login, step by step.
s
@narrow-van-43826 you know this error right?
n
No, sorry, this is not what I've encountered.
p
you need the scope
identify
as well i believe
Copy code
scope:
              - identify
              - email
e
i added identify already 😞
p
have you added the return url to be your ory project url in discord when you created the client? also did you select any special options? or is everything pretty much vanilla?
e
i just followed the tutorial, nothing special.. and yes i added the url.. discord auth popup opens and asks for permission, when i gave permission it returns an error..
Copy code
{
  "id": "00d94064-d386-4c90-8433-270554e31f86",
  "error": {
    "code": 500,
    "message": "oauth2: cannot fetch token: 401 Unauthorized\nResponse: {\"error\": \"invalid_client\"}",
    "status": "Internal Server Error"
  },
  "created_at": "2022-11-21T08:09:33.959805Z",
  "updated_at": "2022-11-21T08:09:33.959805Z"
}
this is the link i am using..
p
Hi @eager-traffic-59070 Sorry for the late reply, I was on holiday last week. The error might be related to the client ID and client secret being incorrectly added to Kratos. Please confirm that the details are correct (client id and secret)