lukeshafer / indigestion-cards

https://indigestioncards.com
6 stars 0 forks source link

Add db check for admin users when verifying sessions #54

Closed lukeshafer closed 1 year ago

lukeshafer commented 1 year ago

If someone's admin rights are removed, they will not be logged out automatically. We want to either:

Check on every request and invalidate the session if needed Check on every write request, return unauthorized + invalidate cookie

The latter seems more secure AND simpler so will likely do that.