joshgarza / strengthtrainer-server

API and DB connection for Strengthtrainer
0 stars 0 forks source link

Implement JWT #9

Open joshgarza opened 2 weeks ago

joshgarza commented 2 weeks ago
joshgarza commented 2 weeks ago

signJWT and verifyJWT functions complete

joshgarza commented 2 weeks ago

routes separated into protected and unprotected routes

joshgarza commented 2 weeks ago

request now passes through middleware to validate the jwt if it is a protected route. otherwise, the request is processed

joshgarza commented 2 weeks ago

validateUser method created

User flow: Request -> if route is protected -> verifyJWT -> validateUser -> process request