API bug fixed, register flow worksgit add .

This commit is contained in:
Mikayla Dobson
2023-02-12 11:33:33 -06:00
parent 1b73fa6b99
commit 532a713295
7 changed files with 64 additions and 33 deletions

View File

@@ -21,6 +21,7 @@ export const routes = async (app: Express) => {
// middleware to check for auth on cookies on each request in protected routes
app.use('/app', async (req, res, next) => {
// pull jwt from request headers
console.log(req.headers);
const token = req.headers['authorization']?.split(" ")[1];
console.log(token);