Livechat Oauth not working as expected

Hi, I have been wanting trying to authorize my app as stated here

But I keep getting error saying missing param or incorrect value. I have already gone through with LiveChat support and it seems like the request I have been making to be correct but not too sure why it is happening and suggested that I raise an issue in github, Livechat Oauth not working as expected. · Issue #2 · livechat/accounts-sdk · GitHub.

My request sample(the redirect uri is already whitelisted):

https://accounts.livechat.com?response_type=code&client_id=83106bf76b781283ee947711dce5dedd&redirect_uri=https://intrin-shrink-url.herokuapp.com/

Did you solve this error? Can we apply this to a novel reading site readlightnovel.info ?

Hi!
I’ll reach our tech support and come back to you with an answer :slight_smile:

Hi!
I’m coming back with an answer.

The app you created is frontend app, but you’re trying to follow the authorization flow for a server-side one. You’ll either need to change the type of his app or change the response_type to token instead of code.
As documented here: https://developers.livechat.com/docs/authorization/authorizing-api-calls/#step-2-redirect-users-to-livechat-oauth-server

Tell me if that helps!

Hi,

Thanks a lot for pointing that out, it enabled me to figure out the problem and continue with my work. Appreciate it.

Regards,
NR

1 Like