src/Auth/Cookie.php
Method tryAuth
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function tryAuth(): AuthResponse
{
// compare the provided token with the token saved in SQL database
$sql = sprintf(
'SELECT userid, mfa_secret, auth_service, validated