Q&A

redirect_uri does not match

I am stuck with this error and found no way around this during Getting an access token from backend the redirect_uri i am using is registered as a callback URL, but is there something different i need to be aware of. Does this redirect_uri need to be same as the one calling in the frontend ? ( i did try to make it same but still i am getting the error)

And the documentation is shit, can someone clearly state what the redirect_uri should be. The following is the code i am trying to post

{
  url: 'https://api.line.me/oauth2/v2.1/token',
  method: 'POST',
  parse: 'json',
  form: {
    grant_type: 'authorization_code',
    client_id: 'Y',
    client_secret: 'X',
    redirect_uri: 'http://localhost:3000/signin',
    code: 'qUtpEX62sdmGglyXXXl'
  },
  timeout: 10000
}

Can somemone please help me suggest or guide.

Thank you in advance.

May the force be with you.

  • 2
  • 1
  • 3011
  • X(旧Twitter) facebook

Me too, if you solve it, please tell me, thank you

  • 0

Similar posts

    No similar posts

Are you sure? question.vm