lets-chat icon indicating copy to clipboard operation
lets-chat copied to clipboard

Running the code

Open DillonMercz opened this issue 1 year ago • 5 comments

Could you provide the instructions to get this code running? I feel there is a lot of blanks and I can't figure out how to run it. Thank you.

DillonMercz avatar May 17 '23 17:05 DillonMercz

{ host: 'localhost:8080', connection: 'keep-alive', 'cache-control': 'max-age=0', 'sec-ch-ua': '"Google Chrome";v="113", "Chromium";v="113", "Not-A.Brand";v="24"', 'sec-ch-ua-mobile': '?0', 'sec-ch-ua-platform': '"macOS"', 'upgrade-insecure-requests': '1', 'user-agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36', accept: 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,/;q=0.8,application/signed-exchange;v=b3;q=0.7', 'sec-fetch-site': 'none', 'sec-fetch-mode': 'navigate', 'sec-fetch-user': '?1', 'sec-fetch-dest': 'document', 'accept-encoding': 'gzip, deflate, br', 'accept-language': 'en-US,en;q=0.9' } /Downloads/chat/server/middlewares/VerifyToken.js:6 const token = req.headers.authorization.split(" ")[1]; ^

TypeError: Cannot read properties of undefined (reading 'split')

DillonMercz avatar May 17 '23 17:05 DillonMercz

Please checkout the Getting Started section of the README. thanks.

earthcomfy avatar May 28 '23 13:05 earthcomfy

i am also facing the same issue i used the errorhandler like this also if (!token) { return res.json({ message: "Access Denied" }); }

but now its showing me unable to login and unable to register on the frontend

Vivek-C-Shah avatar Jul 20 '23 05:07 Vivek-C-Shah

Interesting

Osasdeke avatar Oct 11 '23 01:10 Osasdeke

just enale the authentication in your firebase console it will work

FTS-Dev3 avatar Jul 10 '24 21:07 FTS-Dev3