title: How to handle 'Cancel' - django allauth linkedin
body: <p>I am using allauth Django pacakge for linkedin authentification.</p>
  <p>The login is working succesfully, the problem I have is when the user chooses to <strong>Cancel</strong> the authetification.
  Then user gets redirected to this URL:</p>
  <p><a href="http://127.0.0.1:8000/accounts/linkedin_oauth2/login/callback/?error=user_cancelled_login&amp;error_description=The+user+cancelled+LinkedIn+login&amp;state=1BOK8XL2Xu3R" rel="nofollow noreferrer">http://127.0.0.1:8000/accounts/linkedin_oauth2/login/callback/?error=user_cancelled_login&amp;error_description=The+user+cancelled+LinkedIn+login&amp;state=1BOK8XL2Xu3R</a></p>
  <p>Which generates the authentification error which it's normal, I believe:</p>
  <pre><code>Social Network Login Failure
  An error occurred while attempting to login via your social network account.
  
  {'provider': 'linkedin_oauth2', 'code': 'unknown', 'exception': None}
  </code></pre>
  <p>How can I treat/avoid this error in order to have an errorless flow ?</p>
  <p><a href="https://i.stack.imgur.com/ROgRb.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ROgRb.jpg" alt="enter image description here" /></a></p>