Summer Sale! All accounts are 50% off this week.

harshilencodework's avatar

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?

0 likes
0 replies

Please or to participate in this conversation.