Wait() returns void. Switch to:
return await user.FirstOrDefaultAsync();
Let me know if you need additional or more detailed guidance. If the answer was helpful, please accept it and rate it so that others facing a similar issue can easily find a solution.