Skip to content

Commit 48ad584

Browse files
Merge master into release
2 parents a084f84 + e06d906 commit 48ad584

27 files changed

Lines changed: 131 additions & 109 deletions

File tree

.changeset/curly-mirrors-occur.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+
Included a reference to AuthInternal in MultiFactorSessionImpl.

.changeset/eleven-moons-shave.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
"@firebase/firestore": minor
3+
"@firebase/webchannel-wrapper": minor
4+
---
5+
6+
Enable encodeInitMessageHeaders. This transitions the Firestore client from encoding HTTP Headers via the Query Param to the request's POST payload.
7+
8+
Requires Cloud Firestore Emulator v1.14.4 or newer.
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+
Update custom claim type of `ParsedToken` to be `any`

common/api-review/auth.api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,7 @@ export function parseActionCodeURL(link: string): ActionCodeURL | null;
538538

539539
// @public
540540
export interface ParsedToken {
541-
[key: string]: string | object | undefined;
541+
[key: string]: any;
542542
'auth_time'?: string;
543543
'exp'?: string;
544544
'firebase'?: {

packages/auth/karma.conf.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@ function getTestFiles(argv) {
5454
}
5555

5656
function getTestBrowsers(argv) {
57-
let browsers = ["ChromeHeadless"];
57+
let browsers = ['ChromeHeadless'];
5858
if (process.env?.BROWSERS && argv.unit) {
5959
browsers = process.env?.BROWSERS?.split(',');
60-
}
60+
}
6161
return browsers;
6262
}
6363

packages/auth/src/api/account_management/mfa.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ describe('api/account_management/startEnrollPhoneMfa', () => {
5252
afterEach(mockFetch.tearDown);
5353

5454
it('should POST to the correct endpoint', async () => {
55-
const mock = mockEndpoint(Endpoint.START_PHONE_MFA_ENROLLMENT, {
55+
const mock = mockEndpoint(Endpoint.START_MFA_ENROLLMENT, {
5656
phoneSessionInfo: {
5757
sessionInfo: 'session-info'
5858
}
@@ -72,7 +72,7 @@ describe('api/account_management/startEnrollPhoneMfa', () => {
7272

7373
it('should handle errors', async () => {
7474
const mock = mockEndpoint(
75-
Endpoint.START_PHONE_MFA_ENROLLMENT,
75+
Endpoint.START_MFA_ENROLLMENT,
7676
{
7777
error: {
7878
code: 400,
@@ -116,7 +116,7 @@ describe('api/account_management/finalizeEnrollPhoneMfa', () => {
116116
afterEach(mockFetch.tearDown);
117117

118118
it('should POST to the correct endpoint', async () => {
119-
const mock = mockEndpoint(Endpoint.FINALIZE_PHONE_MFA_ENROLLMENT, {
119+
const mock = mockEndpoint(Endpoint.FINALIZE_MFA_ENROLLMENT, {
120120
idToken: 'id-token',
121121
refreshToken: 'refresh-token'
122122
});
@@ -136,7 +136,7 @@ describe('api/account_management/finalizeEnrollPhoneMfa', () => {
136136

137137
it('should handle errors', async () => {
138138
const mock = mockEndpoint(
139-
Endpoint.FINALIZE_PHONE_MFA_ENROLLMENT,
139+
Endpoint.FINALIZE_MFA_ENROLLMENT,
140140
{
141141
error: {
142142
code: 400,

packages/auth/src/api/account_management/mfa.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export function startEnrollPhoneMfa(
7171
>(
7272
auth,
7373
HttpMethod.POST,
74-
Endpoint.START_PHONE_MFA_ENROLLMENT,
74+
Endpoint.START_MFA_ENROLLMENT,
7575
_addTidIfNecessary(auth, request)
7676
);
7777
}
@@ -96,7 +96,7 @@ export function finalizeEnrollPhoneMfa(
9696
>(
9797
auth,
9898
HttpMethod.POST,
99-
Endpoint.FINALIZE_PHONE_MFA_ENROLLMENT,
99+
Endpoint.FINALIZE_MFA_ENROLLMENT,
100100
_addTidIfNecessary(auth, request)
101101
);
102102
}

packages/auth/src/api/authentication/mfa.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ describe('api/authentication/startSignInPhoneMfa', () => {
4848
afterEach(mockFetch.tearDown);
4949

5050
it('should POST to the correct endpoint', async () => {
51-
const mock = mockEndpoint(Endpoint.START_PHONE_MFA_SIGN_IN, {
51+
const mock = mockEndpoint(Endpoint.START_MFA_SIGN_IN, {
5252
phoneResponseInfo: {
5353
sessionInfo: 'session-info'
5454
}
@@ -68,7 +68,7 @@ describe('api/authentication/startSignInPhoneMfa', () => {
6868

6969
it('should handle errors', async () => {
7070
const mock = mockEndpoint(
71-
Endpoint.START_PHONE_MFA_SIGN_IN,
71+
Endpoint.START_MFA_SIGN_IN,
7272
{
7373
error: {
7474
code: 400,
@@ -112,7 +112,7 @@ describe('api/authentication/finalizeSignInPhoneMfa', () => {
112112
afterEach(mockFetch.tearDown);
113113

114114
it('should POST to the correct endpoint', async () => {
115-
const mock = mockEndpoint(Endpoint.FINALIZE_PHONE_MFA_SIGN_IN, {
115+
const mock = mockEndpoint(Endpoint.FINALIZE_MFA_SIGN_IN, {
116116
idToken: 'id-token',
117117
refreshToken: 'refresh-token'
118118
});
@@ -132,7 +132,7 @@ describe('api/authentication/finalizeSignInPhoneMfa', () => {
132132

133133
it('should handle errors', async () => {
134134
const mock = mockEndpoint(
135-
Endpoint.FINALIZE_PHONE_MFA_SIGN_IN,
135+
Endpoint.FINALIZE_MFA_SIGN_IN,
136136
{
137137
error: {
138138
code: 400,

packages/auth/src/api/authentication/mfa.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export function startSignInPhoneMfa(
6868
>(
6969
auth,
7070
HttpMethod.POST,
71-
Endpoint.START_PHONE_MFA_SIGN_IN,
71+
Endpoint.START_MFA_SIGN_IN,
7272
_addTidIfNecessary(auth, request)
7373
);
7474
}
@@ -91,7 +91,7 @@ export function finalizeSignInPhoneMfa(
9191
>(
9292
auth,
9393
HttpMethod.POST,
94-
Endpoint.FINALIZE_PHONE_MFA_SIGN_IN,
94+
Endpoint.FINALIZE_MFA_SIGN_IN,
9595
_addTidIfNecessary(auth, request)
9696
);
9797
}

packages/auth/src/api/index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,10 @@ export const enum Endpoint {
6060
SET_ACCOUNT_INFO = '/v1/accounts:update',
6161
GET_ACCOUNT_INFO = '/v1/accounts:lookup',
6262
GET_RECAPTCHA_PARAM = '/v1/recaptchaParams',
63-
START_PHONE_MFA_ENROLLMENT = '/v2/accounts/mfaEnrollment:start',
64-
FINALIZE_PHONE_MFA_ENROLLMENT = '/v2/accounts/mfaEnrollment:finalize',
65-
START_PHONE_MFA_SIGN_IN = '/v2/accounts/mfaSignIn:start',
66-
FINALIZE_PHONE_MFA_SIGN_IN = '/v2/accounts/mfaSignIn:finalize',
63+
START_MFA_ENROLLMENT = '/v2/accounts/mfaEnrollment:start',
64+
FINALIZE_MFA_ENROLLMENT = '/v2/accounts/mfaEnrollment:finalize',
65+
START_MFA_SIGN_IN = '/v2/accounts/mfaSignIn:start',
66+
FINALIZE_MFA_SIGN_IN = '/v2/accounts/mfaSignIn:finalize',
6767
WITHDRAW_MFA = '/v2/accounts/mfaEnrollment:withdraw',
6868
GET_PROJECT_CONFIG = '/v1/projects'
6969
}

0 commit comments

Comments
 (0)