Skip to content

Commit ec6884e

Browse files
committed
Merge remote-tracking branch 'origin/master' into UpdateDataTypeFix2
2 parents a152ffa + 1d6771e commit ec6884e

File tree

82 files changed

+2475
-213
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

82 files changed

+2475
-213
lines changed

.changeset/brave-ducks-relax.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'@firebase/auth': minor
3+
'@firebase/auth-compat': minor
4+
---
5+
6+
[feature] Added Firebase App Check support to Firebase Auth.

.changeset/dry-cats-lick.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@firebase/auth': patch
3+
---
4+
5+
Increase the popup poller timeout to 8s to support blocking functions + Firefox

.changeset/shaggy-zebras-leave.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@firebase/app-check': patch
3+
---
4+
5+
Catch all ReCAPTCHA errors and, if caught, prevent App Check from making a request to the exchange endpoint.

.changeset/smart-llamas-compete.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'@firebase/auth': minor
3+
'firebase': minor
4+
---
5+
6+
[feature] Add reCAPTCHA enterprise support.

.changeset/three-months-lie.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@firebase/firestore": patch
3+
---
4+
5+
Fix a bug that sometimes prevented aggregations from being run when muli-tab persistence was enabled.

.github/workflows/canary-deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
# Canary release script requires git history and tags.
1919
fetch-depth: 0
2020
- name: Set up Node (14)
21-
uses: actions/setup-node@v2
21+
uses: actions/setup-node@v3
2222
with:
2323
node-version: 14.x
2424
- name: Yarn install

.github/workflows/check-changeset.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
# This makes Actions fetch all Git history so check_changeset script can diff properly.
2222
fetch-depth: 0
2323
- name: Set up Node (14)
24-
uses: actions/setup-node@v2
24+
uses: actions/setup-node@v3
2525
with:
2626
node-version: 14.x
2727
- name: Yarn install

.github/workflows/check-docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
# get all history for the diff
1515
fetch-depth: 0
1616
- name: Set up Node (14)
17-
uses: actions/setup-node@v2
17+
uses: actions/setup-node@v3
1818
with:
1919
node-version: 14.x
2020
- name: Yarn install

.github/workflows/check-pkg-paths.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
# This makes Actions fetch all Git history so run-changed script can diff properly.
1515
fetch-depth: 0
1616
- name: Set up Node (14)
17-
uses: actions/setup-node@v2
17+
uses: actions/setup-node@v3
1818
with:
1919
node-version: 14.x
2020
- name: Yarn install

.github/workflows/deploy-config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
# This makes Actions fetch all Git history so run-changed script can diff properly.
2222
fetch-depth: 0
2323
- name: Set up Node (14)
24-
uses: actions/setup-node@v2
24+
uses: actions/setup-node@v3
2525
with:
2626
node-version: 14.x
2727
- name: Yarn install

.github/workflows/e2e-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- name: Checkout Repo
1919
uses: actions/checkout@master
2020
- name: Set up Node (14)
21-
uses: actions/setup-node@v2
21+
uses: actions/setup-node@master
2222
with:
2323
node-version: 14.x
2424
- name: install Chrome stable

.github/workflows/format.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
# get all history for the diff
1919
fetch-depth: 0
2020
- name: Set up Node (14)
21-
uses: actions/setup-node@v2
21+
uses: actions/setup-node@v3
2222
with:
2323
node-version: 14.x
2424
- name: Yarn install

.github/workflows/health-metrics-pull-request.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
runs-on: ubuntu-latest
2525
steps:
2626
- uses: actions/checkout@v3
27-
- uses: actions/setup-node@v2
27+
- uses: actions/setup-node@v3
2828
with:
2929
node-version: 14.x
3030
- uses: 'google-github-actions/auth@v0'
@@ -41,7 +41,7 @@ jobs:
4141
runs-on: ubuntu-latest
4242
steps:
4343
- uses: actions/checkout@v3
44-
- uses: actions/setup-node@v2
44+
- uses: actions/setup-node@v3
4545
with:
4646
node-version: 14.x
4747
- uses: 'google-github-actions/auth@v0'

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
steps:
1111
- uses: actions/checkout@v3
1212
- name: Set up Node (14)
13-
uses: actions/setup-node@v2
13+
uses: actions/setup-node@v3
1414
with:
1515
node-version: 14.x
1616
- name: yarn install

.github/workflows/prerelease-manual-deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
# Canary release script requires git history and tags.
2222
fetch-depth: 0
2323
- name: Set up Node (14)
24-
uses: actions/setup-node@v2
24+
uses: actions/setup-node@v3
2525
with:
2626
node-version: 14.x
2727
- name: Yarn install

.github/workflows/release-prod.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919

2020
steps:
2121
- name: Set up Node (14)
22-
uses: actions/setup-node@v2
22+
uses: actions/setup-node@v3
2323
with:
2424
node-version: 14.x
2525
- name: Checkout release branch (with history)

.github/workflows/release-staging.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
if: github.event.inputs.release-branch == 'release' || endsWith(github.event.inputs.release-branch, '-releasebranch')
2626
steps:
2727
- name: Set up Node (14)
28-
uses: actions/setup-node@v2
28+
uses: actions/setup-node@v3
2929
with:
3030
node-version: 14.x
3131
- name: Merge master into release
@@ -132,14 +132,27 @@ jobs:
132132
-H "Authorization:Bearer $OSS_BOT_GITHUB_TOKEN" \
133133
-d "{\"event_type\":\"staging-tests\", \"client_payload\":{\"versionOrTag\":\"$VERSION_OR_TAG\"}}" \
134134
https://api.github.com/repos/firebase/firebase-js-sdk/dispatches
135+
- name: Check for changes requiring a reference doc publish
136+
id: docs-check
137+
run: |
138+
LAST_PUBLISHED_VERSION=$(npm info firebase version)
139+
git diff --exit-code firebase@$LAST_PUBLISHED_VERSION HEAD docs-devsite
140+
- name: No diff, docs not needed
141+
if: ${{ success() }}
142+
run: echo "DOCS_NEEDED=false" >> $GITHUB_STATE
143+
- name: Diff returned something, docs are needed
144+
if: ${{ failure() }}
145+
run: echo "DOCS_NEEDED=true" >> $GITHUB_STATE
135146
- name: Log to release tracker
136147
# Sends release information to cloud functions endpoint of release tracker.
148+
if: ${{ always() }}
137149
run: |
138150
DATE=$(date +'%m/%d/%Y')
139151
BASE_VERSION=${{ steps.get-version.outputs.BASE_VERSION }}
140152
STAGING_VERSION=${{ steps.get-version.outputs.STAGING_VERSION }}
141153
OPERATOR=${{ github.actor }}
142154
RELEASE_TRACKER_URL=${{ secrets.RELEASE_TRACKER_URL }}
155+
DOCS_NEEDED=${{ steps.docs-check.outputs.DOCS_NEEDED }}
143156
curl -X POST -H "Content-Type:application/json" \
144-
-d "{\"version\":\"$BASE_VERSION\",\"tag\":\"$STAGING_VERSION\",\"date\":\"$DATE\",\"operator\":\"$OPERATOR\"}" \
157+
-d "{\"version\":\"$BASE_VERSION\",\"tag\":\"$STAGING_VERSION\",\"date\":\"$DATE\",\"operator\":\"$OPERATOR\",\"docs_needed\":\"$DOCS_NEEDED\"}" \
145158
$RELEASE_TRACKER_URL/logStaging

.github/workflows/test-all.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
sudo apt-get install google-chrome-stable
2222
- uses: actions/checkout@v3
2323
- name: Set up Node (16)
24-
uses: actions/setup-node@v2
24+
uses: actions/setup-node@v3
2525
with:
2626
node-version: 16.x
2727
- name: Bump Node memory limit

.github/workflows/test-changed-auth.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,20 @@ jobs:
1414
steps:
1515
# install Chrome first, so the correct version of webdriver can be installed by chromedriver when setting up the repo
1616
- name: install Chrome stable
17+
# Install Chrome version 110.0.5481.177-1 as test starts to fail on version 111.
18+
# We will retry to use the latest, once version 112 becomes stable.
1719
run: |
1820
sudo apt-get update
19-
sudo apt-get install google-chrome-stable
21+
sudo apt-get install wget
22+
sudo wget http://dl.google.com/linux/chrome/deb/pool/main/g/google-chrome-stable/google-chrome-stable_110.0.5481.177-1_amd64.deb
23+
sudo apt-get install -f ./google-chrome-stable_110.0.5481.177-1_amd64.deb --allow-downgrades
2024
- name: Checkout Repo
2125
uses: actions/checkout@master
2226
with:
2327
# This makes Actions fetch all Git history so run-changed script can diff properly.
2428
fetch-depth: 0
2529
- name: Set up Node (14)
26-
uses: actions/setup-node@v2
30+
uses: actions/setup-node@v3
2731
with:
2832
node-version: 14.x
2933
- name: Bump Node memory limit
@@ -54,7 +58,7 @@ jobs:
5458
# This makes Actions fetch all Git history so run-changed script can diff properly.
5559
fetch-depth: 0
5660
- name: Set up Node (14)
57-
uses: actions/setup-node@v2
61+
uses: actions/setup-node@v3
5862
with:
5963
node-version: 14.x
6064
- name: Bump Node memory limit

.github/workflows/test-changed-fcm-integration.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
# This makes Actions fetch all Git history so run-changed script can diff properly.
2424
fetch-depth: 0
2525
- name: Set up Node (14)
26-
uses: actions/setup-node@v2
26+
uses: actions/setup-node@v3
2727
with:
2828
node-version: 14.x
2929
- name: Bump Node memory limit

.github/workflows/test-changed-firestore-integration.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
# This makes Actions fetch all Git history so run-changed script can diff properly.
1515
fetch-depth: 0
1616
- name: Set up Node (14)
17-
uses: actions/setup-node@v2
17+
uses: actions/setup-node@v3
1818
with:
1919
node-version: 14.x
2020
- name: install Chrome stable

.github/workflows/test-changed-firestore.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
# This makes Actions fetch all Git history so run-changed script can diff properly.
1515
fetch-depth: 0
1616
- name: Set up Node (14)
17-
uses: actions/setup-node@v2
17+
uses: actions/setup-node@v3
1818
with:
1919
node-version: 14.x
2020
- name: install Chrome stable
@@ -50,7 +50,7 @@ jobs:
5050
# This makes Actions fetch all Git history so run-changed script can diff properly.
5151
fetch-depth: 0
5252
- name: Set up Node (14)
53-
uses: actions/setup-node@v2
53+
uses: actions/setup-node@v3
5454
with:
5555
node-version: 14.x
5656
- name: Bump Node memory limit

.github/workflows/test-changed-misc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
# This makes Actions fetch all Git history so run-changed script can diff properly.
1515
fetch-depth: 0
1616
- name: Set up Node (16)
17-
uses: actions/setup-node@v2
17+
uses: actions/setup-node@v3
1818
with:
1919
node-version: 16.x
2020
- name: install Chrome stable

.github/workflows/test-changed.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
# This makes Actions fetch all Git history so run-changed script can diff properly.
1515
fetch-depth: 0
1616
- name: Set up Node (14)
17-
uses: actions/setup-node@v2
17+
uses: actions/setup-node@v3
1818
with:
1919
node-version: 14.x
2020
- name: install Chrome stable
@@ -45,7 +45,7 @@ jobs:
4545
with:
4646
fetch-depth: 0
4747
- name: Set up Node (14)
48-
uses: actions/setup-node@v2
48+
uses: actions/setup-node@v3
4949
with:
5050
node-version: 14.x
5151
- name: install Firefox stable

.github/workflows/test-firebase-integration.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
# This makes Actions fetch all Git history so run-changed script can diff properly.
1515
fetch-depth: 0
1616
- name: Set up Node (14)
17-
uses: actions/setup-node@v2
17+
uses: actions/setup-node@v3
1818
with:
1919
node-version: 14.x
2020
- name: install Chrome stable

.github/workflows/update-api-reports.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ jobs:
1414
uses: actions/checkout@master
1515
with:
1616
# checkout HEAD commit instead of merge commit
17-
ref: ${{ github.event.pull_request.head.sha }}
17+
ref: ${{ github.event.pull_request.head.ref }}
1818
token: ${{ github.token }}
1919
- name: Set up Node (14)
20-
uses: actions/setup-node@v2
20+
uses: actions/setup-node@v3
2121
with:
2222
node-version: 14.x
2323
- name: Yarn install

common/api-review/auth.api.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,14 @@ export const AuthErrorCodes: {
226226
readonly WEAK_PASSWORD: "auth/weak-password";
227227
readonly WEB_STORAGE_UNSUPPORTED: "auth/web-storage-unsupported";
228228
readonly ALREADY_INITIALIZED: "auth/already-initialized";
229+
readonly RECAPTCHA_NOT_ENABLED: "auth/recaptcha-not-enabled";
230+
readonly MISSING_RECAPTCHA_TOKEN: "auth/missing-recaptcha-token";
231+
readonly INVALID_RECAPTCHA_TOKEN: "auth/invalid-recaptcha-token";
232+
readonly INVALID_RECAPTCHA_ACTION: "auth/invalid-recaptcha-action";
233+
readonly MISSING_CLIENT_TYPE: "auth/missing-client-type";
234+
readonly MISSING_RECAPTCHA_VERSION: "auth/missing-recaptcha-version";
235+
readonly INVALID_RECAPTCHA_VERSION: "auth/invalid-recaptcha-version";
236+
readonly INVALID_REQ_TYPE: "auth/invalid-req-type";
229237
};
230238

231239
// @public
@@ -422,6 +430,9 @@ export const indexedDBLocalPersistence: Persistence;
422430
// @public
423431
export function initializeAuth(app: FirebaseApp, deps?: Dependencies): Auth;
424432

433+
// @public
434+
export function initializeRecaptchaConfig(auth: Auth): Promise<void>;
435+
425436
// @public
426437
export const inMemoryPersistence: Persistence;
427438

@@ -754,7 +765,7 @@ export interface TotpMultiFactorAssertion extends MultiFactorAssertion {
754765
export class TotpMultiFactorGenerator {
755766
static assertionForEnrollment(secret: TotpSecret, oneTimePassword: string): TotpMultiFactorAssertion;
756767
static assertionForSignIn(enrollmentId: string, oneTimePassword: string): TotpMultiFactorAssertion;
757-
static FACTOR_ID: "totp";
768+
static FACTOR_ID: 'totp';
758769
static generateSecret(session: MultiFactorSession): Promise<TotpSecret>;
759770
}
760771

0 commit comments

Comments
 (0)