Line Login responded redirect_uri does not match

Pre condition, Condition to reproduce

Sending POST Request to https://api.line.me/oauth2/v2.1/token

Issue/ Error Message details

Hi. I have a problem with redirect_uri thingy here. I have 3 Web App Callback URL in Line Developer Console but still got response redirect_uri does not match. I don't understand where should I put my redirect_uri. What's stranger is https://access.line.me/oauth2/v2.1/authorize?response_type=code&client_id=1656404065&redirect_uri=https%3A%2F%2Ffloofy.id%2Fmember%2FLineOauth&state=12345abcde&scope=profile%20openid this link works fine, and I sent the same redirect_uri on POST Request to https://api.line.me/oauth2/v2.1/token it responded with redirecr_uri does not match.

Reference information (Version / Platform/ environment)

Line Login v2.1

  • 0
  • 3
  • 1496
  • twitter facebook

@test Double check if it's 100% equals your redirect uri on console.

  • 0

HI, im facing the same, but i tried without encode and with encode, its still get {"error":"invalid_grant","error_description":"redirect_uri does not match"} as response

  • 0

Perhaps, are you seding URL encoded redirect_uri to token API? Sending redirect_uri without URL encode might work for you.

  • 1

Similar posts

    No similar posts

Are you sure? question.vm