An open API service indexing awesome lists of open source software.

https://github.com/iktakahiro/whoami

Firebase Authentication JWT id Token Viewer
https://github.com/iktakahiro/whoami

firebase firebase-auth jwt nextjs react

Last synced: about 2 months ago
JSON representation

Firebase Authentication JWT id Token Viewer

Awesome Lists containing this project

README

          

# Who am I - Firebase ID Token Viewer

* This application prints the tokens generated by Firebase Authentication in readable format.
* ID tokens are only decoded, not verified.
* Email or password you entered will never be sent to any outside network except Firebase.
* This is a developer tool. Do not use for your end users.

![screenshot-full](./docs/id-token-cheker-screenshot-full.png)

## Getting Started

### 1. Create a new .env.local file

```bash
cp .env.example .env.local
```

### 2. Set environments

```env
NEXT_PUBLIC_FIREBASE_API_KEY=
NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN=
NEXT_PUBLIC_FIREBASE_DATABASE_URL=
NEXT_PUBLIC_FIREBASE_PROJECT_ID=
NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET=
NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID=
NEXT_PUBLIC_FIREBASE_APP_ID=
```

* https://firebase.google.com/docs/web/setup

### 3. Run npm commands

```bash
npm i
npm run dev
```

### 4. Open your web browser localhost:3000

![screenshot-open](./docs/id-token-cheker-screenshot-open.png)

### 5. Enter your email and password

![screenshot-input](./docs/id-token-cheker-screenshot-input.png)

### 6. View details of a generated id token

![screenshot-result](./docs/id-token-cheker-screenshot-result.png)