Skip to content

Latest commit

 

History

History
21 lines (15 loc) · 486 Bytes

README.md

File metadata and controls

21 lines (15 loc) · 486 Bytes

Firebase JWT token validator middleware

This middleware can be used in Node.js environment to validate the requests coming from the client. Current version written in Typescript.

serviceAccountKey.json // "Replace this file's content with your firebase access keys"

How to use the middleware:

app.get("/user", validateFirebaseToken, (req: Request, res: Response) => {
    res.send({
        FirstName : "Poorna",
        LastName : "Jayasinghe"
    });
});