firebase / firebase/firebase-js-sdk

Microsoft Auth Errors on Account Creation

Open
#1,666 9 comments 0 reactions 0 assignees View on GitHub
api: auth feature request internal-bug-filed
Dominant language
TypeScript
Stars
5.1k
Forks
1k
Avg merge
2d 21h
Merged PRs (30d)
37

Description

### [REQUIRED] Describe your environment

* Operating System version: OSX
* Browser version: Chrome 73
* Firebase SDK version: Web 5.8.4
* Firebase Product: auth

### [REQUIRED] Describe the problem

When I attempt to create an account using the new Microsoft auth I receive this error:

```
Failed to fetch resource from https://graph.microsoft.com/v1.0/me, http status: 202, http response: {"@odata.context":"https://graph.microsoft.com/v1.0/$metadata#users/$entity","id":"XYZ","userPrincipalName":"XYZ@XYZ.com","businessPhones":[],"displayName":null,"jobTitle":null,"mail":null,"mobilePhone":null,"officeLocation":null,"preferredLanguage":null}
```

Note: I've redacted the `id` and `userPrincipalName` name here.

The Firebase account is actually created successfully (even though it doesn't log me in after the creation process) but properties like emailVerified are not set on the account. After the initial error, I am able to log into the newly created account via Microsoft login.

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.