@test Double check if it's 100% equals your redirect uri on console.
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
Perhaps, are you seding URL encoded redirect_uri to token API? Sending redirect_uri without URL encode might work for you.