alittlebroken / recipefinder-backend

0 stars 0 forks source link

add user data to req object when logged in #68

Closed alittlebroken closed 1 year ago

alittlebroken commented 1 year ago

When a user requests a resource and is logged in, there should be some middleware which looks up the user data and then populates the request object for other middleware to use.

The refeshToken and access token should only store the users id or email