How would you check if a user is signed in for multiple endpoints.

With nextauth how could you check if a user is signed in without having to repeat the code for every endpoint. Apparently middleware when used in database session storage mode doesn't have this ability.
3 Replies
Neto
Neto2y ago
middleware
RockBacon
RockBaconOP2y ago
Thanks @nyx (Rustular DevRel) !
Want results from more Discord servers?
Add your server