Skip to content

Commit

Permalink
Adds instructions for access on hosted github pages (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
ddikman authored Nov 13, 2023
1 parent f845156 commit b111433
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
Binary file added example.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 13 additions & 7 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,24 @@ curl 'https://www.googleapis.com/identitytoolkit/v3/relyingparty/verifyPassword?

But if you want to get the JWT for a google account or having phone number login or so, it's a bit trickier so I created this tiny app to help.

If you run this locally, it will likely work out-of-the-box as you've probably got `localhost` added to you Firebase Authorised domains but if not or if you're running this from anywhere else you will need to add it in first.
## The app

## Security
![Example of the running app](example.png)

You can check the code, this tool never sends anything to any backend aside from google. It saves some inputs to make it easier to use in local storage but it's not doing anything with these. But always use extreme caution, download, check the code and run locally if you're unsure!
If you run this locally, it will likely work out-of-the-box as you've probably got `localhost` added to you Firebase Authorized domains.

## Running locally
If you want to run it without cloning the repo, you can access a hosted version on https://ddikman.github.io/firebase-jwt/ just make sure you add it to your `Authorized domains`

### Running locally

Unfortunatly, the firebase requires some browser functionlity that's not available when serving from file, so instead we run a simply web server to host the html. Any web server will do. There is a simple node server already configured for you in this repo.

To run this project simply clone it and then run (with nodejs installed):
```shell
npm i;
npm start;
```
npm install
npm start
```

## Security

You can check the code, this tool never sends anything to any backend aside from google. It saves some inputs to make it easier to use in local storage but it's not doing anything with these. But always use extreme caution, download, check the code and run locally if you're unsure!

0 comments on commit b111433

Please sign in to comment.