Jul 25, 2022
0
Level 1
User object didn't get from auth token in middleware for api
I have used Laravel Middleware where I dynamically select the database from a subdomain and generate auth. It works fine using session for web but when I get the user from token using passport I didn't get user object. How can i get the user from the token generated by passport>? Can anyone give me a solution?
Please or to participate in this conversation.