Skip to content

FCM oAuth generator provides you with with a bearer token to sign on in postman or other client tools.

Notifications You must be signed in to change notification settings

FP-GmbH/fcm-oauth-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

FCM OAuth2 Token generator

Purpose

This little script helps you generating an OAuth2 token that you can as auth-header for cURL requests or in REST clients such as Postman.

HowTo

Prerequisites

  • Make sure you have node.js installed
  • Have a FCM service_accounts.json File for Authentication (See FCM Docs

Install

git clone <this repo>
cd fcm-oauth-generator
npm i
cp <path-to-your-serviceaccounts-file> .

Usage

npm start

or alternatively

node index.js

This results in an OAuth2 token output that can be used in postman.

If you don't want to install node.js on your host, try using Docker with a node.js image

SetUp Postman

About

FCM oAuth generator provides you with with a bearer token to sign on in postman or other client tools.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published