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