📅 You're Invited: Meet the Socket team at RSAC (April 28 – May 1).RSVP
Socket
Sign inDemoInstall
Socket

@firechecker/express

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@firechecker/express

Middleware for checking firebase authentication in Express APIs

0.2.8
latest
npm
Version published
Weekly downloads
3
Maintainers
1
Weekly downloads
 
Created
Source

Firechecker - Express

Getting started

$ npm install --save express firebase-admin @firechecker/express
const admin = require('firebase-admin')
const express = require('express')
const firechecker = require('@firechecker/express')

const serviceAccount = require('path/to/serviceAccountKey.json')

admin.initializeApp({
  credential: admin.credential.cert(serviceAccount)
})

const app = express()

app.use(firechecker())

app.get('/', (request, response) => {
  response.status(200).json({
    access: true
  })
})

app.listen(3000)

FAQs

Package last updated on 26 Sep 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts