Skip to content

firebase-jwt 0.0.3

Install from the command line:
Learn more about npm packages
$ npm install @presswink/firebase-jwt@0.0.3
Install via package.json:
"@presswink/firebase-jwt": "0.0.3"

About this version

@presswink/firebase-jwt

this package is going to verify firebase access-token without using firebase admin sdk.

Getting Start

  1. install the package

NPM

npm i @presswink/firebase-jwt

yarn

yarn add @presswink/firebase-jwt
  1. Examples

typescript

import FirebaseJwt from '@presswink/firebase-jwt'

const projectId: string = "firebase-auth"
const jwtToken: string  = ""

const jwt = new FirebaseJwt(projectId)

// verify jwt tokens

const verifyResult = jwt.verify(jwtToken)
console.log(verifyResult)

// decode jwt tokens
const decodeResult = jwt.verify(jwtToken)
console.log(decodeResult)

commonjs

const FirebaseJwt require('@presswink/firebase-jwt')

const projectId = "firebase-auth"
const jwtToken = ""

const jwt = new FirebaseJwt(projectId)

// verify jwt tokens

const verifyResult = jwt.verify(jwtToken)
console.log(verifyResult)

// decode jwt tokens
const decodeResult = jwt.verify(jwtToken)
console.log(decodeResult)

Development Guide

  1. clone the repository
git clone https://github.com/presswink/firebase-jwt.git
  1. node version should be >= v22.4.0

  2. install packages

NPM

npm i

yarn

yarn install
  1. build project

NPM

npm run build

yarn

yarn build
  1. run the test cases

NPM

npm run test

yarn

yarn test

Contributor

@Aditya panther

Details


Assets

  • firebase-jwt-0.0.3.tgz

Download activity

  • Total downloads 0
  • Last 30 days 0
  • Last week 0
  • Today 0

Recent versions

View all