480655a0ee
refactor(server/middleware): update current user middleware
...
- check for titlecased version of auth header
- check for token's `sub` field as well as `id`
- ensure we don't select sensitive info when querying the user
- don't throw if there's no user logged in for that request
2024-12-09 15:34:30 -05:00
4139f6fd58
refactor(api): remove auth cookie checks
...
just get the authorization header
2024-03-21 18:34:46 -04:00
c2ac9e6318
fix(server/middleware): import messages from constants
2023-12-31 14:23:22 -05:00
f2e40dabf5
fix(build): remove oauth imports
...
not yet!
2023-12-30 17:36:22 -05:00
c8e84c909e
style(*): cleanup unused imports
2023-12-29 20:11:07 -05:00
3e5af47107
refactor(*): refactor tsconfig paths
...
looks/feels nicer
2023-12-20 17:23:31 -05:00
d67530eb64
refactor(server/middleware): rename currentUser
middleware
2023-10-10 21:56:25 -04:00