firebase / firebase/firebase-js-sdk

FR: Specify why auth/missing-identifier is being returned

Open
#7,231 5 comments 3 reactions 0 assignees View on GitHub
api: auth feature request needs-attention v9
Dominant language
TypeScript
Stars
5.1k
Forks
1k
Avg merge
2d 21h
Merged PRs (30d)
37

Description

### [REQUIRED] Describe your environment

* Operating System version: macOS 12.3
* Browser version: Firefox 111.0.1
* Node version: 16.17.0
* Firebase SDK version: 9.19.1
* Firebase Product: auth

### [REQUIRED] Describe the problem

I recently ran into an issue where auth/missing-identifier was being returned with no details anywhere on why this error was being returned. I learned later it was because I was passing a token that wasn't created through the Firebase Admin SDK but it wasn't clear when all I had to go on was `Firebase: Error (auth/missing-identifier).` and there wasn't any explanation anywhere in https://firebase.google.com/docs.

#### Steps to reproduce:
To reproduce the issue, just call `signInWithCustomToken` with a valid JWT token that wasn't generated through Firebase Admin.
#### Relevant Code:

```javascript
// jwtToken is a JWT token that wasn't generated through Firebase Admin
await signInWithCustomToken(auth, jwtToken);
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.