nextauth authorize function returning a {} before user data
so in my authorize function in nextAuth , when checking valid information of the i get a {} , then i get the user object however and this has led to enter the opposite condition first than access the condition after r=getting user object , the api endpoint is doing well , i assumed that this problem has a relation to async/await function it may return {} until it get the data , any suggestions ?