Skip to content

Commit 25f9d3a

Browse files
chore: update auth config with more API with different shape
1 parent 8ced923 commit 25f9d3a

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

  • .github/scripts/compare-types/packages/auth

.github/scripts/compare-types/packages/auth/config.ts

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,26 @@ const config: PackageConfig = {
170170
reason:
171171
'RN Firebase models disableWarnings as an optional property, while the firebase-js-sdk emitted type text shows a required boolean property.',
172172
},
173+
{
174+
name: 'ActionCodeInfo',
175+
reason:
176+
'Semantically the same action-code operation string union; RN Firebase types spell `operation` as `ActionCodeOperationValue`, while the firebase-js-sdk snapshot uses `(typeof ActionCodeOperation)[keyof typeof ActionCodeOperation]`, which compare-types treats as a different shape string.',
177+
},
178+
{
179+
name: 'MultiFactorAssertion',
180+
reason:
181+
'Same factor-id string union as the SDK; RN Firebase exposes `FactorIdValue` on `factorId`, while the firebase-js-sdk snapshot uses `(typeof FactorId)[keyof typeof FactorId]`, which differs only in emitted type text.',
182+
},
183+
{
184+
name: 'MultiFactorError',
185+
reason:
186+
'Same operation-type string union as the SDK; RN Firebase narrows `customData.operationType` to `OperationTypeValue`, while the firebase-js-sdk snapshot uses `(typeof OperationType)[keyof typeof OperationType]`, which compare-types compares textually.',
187+
},
188+
{
189+
name: 'MultiFactorInfo',
190+
reason:
191+
'Same factor-id string union as the SDK; RN Firebase exposes `FactorIdValue` on `factorId`, while the firebase-js-sdk snapshot uses `(typeof FactorId)[keyof typeof FactorId]`, which differs only in emitted type text.',
192+
},
173193
{
174194
name: 'EmailAuthProvider',
175195
reason:
@@ -250,6 +270,11 @@ const config: PackageConfig = {
250270
reason:
251271
'RN Firebase now exports TwitterAuthProvider from the modular surface, but its native helper class only exposes the credential factory used by RNFB and does not yet mirror the firebase-js-sdk static fields and credentialFromResult/credentialFromError helpers.',
252272
},
273+
{
274+
name: 'UserCredential',
275+
reason:
276+
'Same operation-type string union as the SDK; RN Firebase exposes `operationType` as `OperationTypeValue`, while the firebase-js-sdk snapshot uses `(typeof OperationType)[keyof typeof OperationType]`, which compare-types treats as a different shape string.',
277+
},
253278
],
254279
};
255280

0 commit comments

Comments
 (0)