Is it possible to use force_login for Twitter in Laravel Socialite?
In my app, I'm using "Log in with Twitter" feature. I want to ask users for password each time they log in, for better security. Facebook allows to enable it on their side, Twitter seems to handle it by API parameter only. This parameter is called force_login, as described in the documentation.
A number of OAuth providers support optional parameters in the redirect request. To include any optional parameters in the request, call the with method with an associative array:
After research, I see that it can't be done for Twitter, because Twitter Provider extends OAuth One provider, which doesn't have with() method. It exists for Google and Facebook though. I think Twitter's authentication with force_login parameter is not a true OAuth operation and that's why it's not handled by Socialite. Too bad.