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
Neto12mo ago
middleware
RockBacon
RockBacon12mo ago
Thanks @nyx (Rustular DevRel) !
Want results from more Discord servers?
Add your server
More Posts