Skip to content

create script to generate Firebase token#196

Open
RohanNankani wants to merge 1 commit intorelease-v2from
rohan/token-generator-script
Open

create script to generate Firebase token#196
RohanNankani wants to merge 1 commit intorelease-v2from
rohan/token-generator-script

Conversation

@RohanNankani
Copy link

@RohanNankani RohanNankani commented Aug 2, 2024

Notion ticket link

Create Firebase Token Script

Implementation description

Created a script to help developers generate the Firebase token quickly instead of having to generate it from the Postman.

Steps to test

  1. From the CLI, run the command: "npm run dev -- --testing" and generate the PERN stack from "rohan/token-generator-script"
  2. Build the application by running the command: "docker-compose up --build -d"
  3. Run the following command from root of the repo: "npx ts-node token-generator.ts generate-token [email] [password]"
  4. The script should give you an "accessToken". Copy and paste that accessToken and put it under “Authorization” of type “Bearer Token”
  5. Make the necessary GET, POST, and DELETE requests

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments