middleware or context?

I'm creating a guest user when you enter to my site, all good and it works but typescript is complaining that the user property (guest or registered google user) doesn't exist when I query it(again all working fine). I set the user in a middleware and I just let the session know that there's a user property in the session object. Any clue why it is complaining? should I switch the logic to the context? thanks!!
No description
No description
1 Reply
K1|ller
K1|llerOP14mo ago
Moved all to the context and it worked, what would you tipically put in a middleware??
Want results from more Discord servers?
Add your server