nkwsy / Wildmile

Wildmile tools and information
https://hackathon-starter-2018.herokuapp.com
1 stars 3 forks source link

More unified system for identifying if user logged in / admin / authorized to edit #189

Closed nkwsy closed 3 months ago

nkwsy commented 5 months ago

Currently I use useUser from lib/hooks as well as cookieStore.get("session") to see if user is logged in. Sometimes page does not load and shows user is not logged in with these tactics. Looking to streamline how we check user permissions and how we can pull theuser._id` for adding info to database etc.