title: Laravel Socialite : Login With LinkedIn Gives Error on Cancle Button
body: <p>I have followed below link to provide <code>Login With LinkedIn</code> in my laravel app.</p>
  
  <p><a href="https://itsolutionstuff.com/post/laravel-5-login-with-linkedin-using-socialite-packageexample.html" rel="nofollow noreferrer">https://itsolutionstuff.com/post/laravel-5-login-with-linkedin-using-socialite-packageexample.html</a></p>
  
  <p>All Working fine , I am successfully able to login with likedin .</p>
  
  <p>But problem is when user first time click button Login With Linked on my website , it redirect to linkedIn Page show Dialog with Ok and Cancle button and now if user click on cancle button then its shows below error </p>
  
  <p><a href="https://i.stack.imgur.com/aSRMp.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/aSRMp.png" alt="enter image description here"></a></p>
  
  <p>browser url is :</p>
  
  <blockquote>
    <p><a href="http://www.mywebsite.com/auth/linkedin/callback?error=user_cancelled_login&amp;error_description=The+user+cancelled+LinkedIn+login&amp;state=NSlF7oA3yFRLCoRi5BARhbVrWwK8b02Mg54Jw5cg" rel="nofollow noreferrer">http://www.mywebsite.com/auth/linkedin/callback?error=user_cancelled_login&amp;error_description=The+user+cancelled+LinkedIn+login&amp;state=NSlF7oA3yFRLCoRi5BARhbVrWwK8b02Mg54Jw5cg</a></p>
  </blockquote>
  
  <p>I want when user click on cancle button , it simply redirect to home page of my website . </p>
  
  <p>On LinkedIn Developer Console I have added below url :</p>
  
  <p><strong>OAuth 2.0</strong></p>
  
  <p>Authorized Redirect URLs:</p>
  
  <pre><code>http://www.mywebsite.com/auth/linkedin/callback
  </code></pre>
  
  <p><strong>OAuth 1.0a</strong></p>
  
  <p>Default "Accept" Redirect URL:</p>
  
  <pre><code>http://www.mywebsite.com/auth/linkedin
  </code></pre>
  
  <p>Default "Cancel" Redirect URL:</p>
  
  <pre><code>http://www.mywebsite.com/
  </code></pre>
  
  <p>please help me to solve out this issue.</p>