User canceled the social login request - 400

I am using a custom subdomain with the okta hosted login widget.

I have successfully integrated linkedin as an Identity Provider and I can sign up with linkedin without any problems.

But when I click the cancel button on the linkedin sign in page, I get an 400 Bad request screen, saying this:

400 - Bad request
Your request resulted in an error. User canceled the social login request.  

The URL is:

https://login.${myDomain}/oauth2/v1/authorize/callback?error=user_cancelled_login&error_description=The+user+cancelled+LinkedIn+login&state=TkNyQTJZAVJZDszdfgzjsfjzfSZJFJZF...

I donĀ“t know what is missing. Can someone help?