'Laravel Auth inside object there is an email

I have created an auth guard of customers using sanctum .But i am using mongo db . the error that arises is unauthorized when I am trying to log in. as email is not in collection .its inside an object can anyone suggest me a solution for this?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source