In your example, you set the user on the socket object in the postAuthenticate function.
Do you see an issue if we set the user on the socket in the authenticate method right before the callback only if the password received (data.password) matches with user.password?
In your example, it finds the user in database twice.
Thanks.
In your example, you set the user on the socket object in the postAuthenticate function.
Do you see an issue if we set the user on the socket in the authenticate method right before the callback only if the password received (data.password) matches with user.password?
In your example, it finds the user in database twice.
Thanks.