Skip to content

Update password policy in sign up flow #7392

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 15 commits into from
Jul 6, 2023

Conversation

ch5zzy
Copy link
Contributor

@ch5zzy ch5zzy commented Jun 23, 2023

Catch the PASSWORD_DOES_NOT_MEET_REQUIREMENTS error during sign up and update the password policy if it is already cached for the project/tenant.

@changeset-bot
Copy link

changeset-bot bot commented Jun 23, 2023

⚠️ No Changeset found

Latest commit: 7aca281

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@ch5zzy ch5zzy changed the title Update password policy in sign up flow Update password policy in sign up flow (#3) Jun 23, 2023
@google-oss-bot
Copy link
Contributor

google-oss-bot commented Jun 23, 2023

Size Report 1

Affected Products

  • @firebase/auth

    TypeBase (1741fef)Merge (95b2813)Diff
    browser172 kB172 kB+308 B (+0.2%)
    cordova199 kB200 kB+373 B (+0.2%)
    esm5225 kB225 kB+373 B (+0.2%)
    main169 kB169 kB+373 B (+0.2%)
    module172 kB172 kB+308 B (+0.2%)
    react-native184 kB184 kB+373 B (+0.2%)
  • @firebase/auth/cordova

    TypeBase (1741fef)Merge (95b2813)Diff
    browser199 kB200 kB+373 B (+0.2%)
    module199 kB200 kB+373 B (+0.2%)
  • @firebase/auth/internal

    TypeBase (1741fef)Merge (95b2813)Diff
    browser182 kB183 kB+308 B (+0.2%)
    esm5238 kB238 kB+373 B (+0.2%)
    main205 kB205 kB+373 B (+0.2%)
    module182 kB183 kB+308 B (+0.2%)
  • @firebase/auth/react-native

    TypeBase (1741fef)Merge (95b2813)Diff
    browser184 kB184 kB+373 B (+0.2%)
    module184 kB184 kB+373 B (+0.2%)
  • bundle

    TypeBase (1741fef)Merge (95b2813)Diff
    auth (Anonymous)71.9 kB72.0 kB+78 B (+0.1%)
    auth (EmailAndPassword)76.8 kB76.9 kB+78 B (+0.1%)
    auth (GoogleFBTwitterGitHubPopup)98.1 kB98.2 kB+78 B (+0.1%)
    auth (GooglePopup)95.4 kB95.4 kB+78 B (+0.1%)
    auth (GoogleRedirect)95.6 kB95.7 kB+78 B (+0.1%)
    auth (Phone)81.8 kB81.8 kB+78 B (+0.1%)
  • firebase

    TypeBase (1741fef)Merge (95b2813)Diff
    firebase-auth-compat.js133 kB133 kB+267 B (+0.2%)
    firebase-auth-cordova.js148 kB149 kB+328 B (+0.2%)
    firebase-auth-react-native.js161 kB161 kB+328 B (+0.2%)
    firebase-auth.js127 kB128 kB+267 B (+0.2%)
    firebase-compat.js774 kB774 kB+267 B (+0.0%)

Test Logs

  1. https://storage.googleapis.com/firebase-sdk-metric-reports/NoafvWV2Ru.html

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Jun 23, 2023

Size Analysis Report 1

Affected Products

  • @firebase/auth

    • ActionCodeOperation

      Size

      TypeBase (1741fef)Merge (95b2813)Diff
      size36.1 kB36.1 kB+78 B (+0.2%)
      size-with-ext-deps56.8 kB56.9 kB+78 B (+0.1%)
    • ActionCodeURL

      Size

      TypeBase (1741fef)Merge (95b2813)Diff
      size36.9 kB37.0 kB+78 B (+0.2%)
      size-with-ext-deps57.9 kB58.0 kB+78 B (+0.1%)
    • AuthCredential

      Size

      TypeBase (1741fef)Merge (95b2813)Diff
      size36.1 kB36.2 kB+78 B (+0.2%)
      size-with-ext-deps56.9 kB56.9 kB+78 B (+0.1%)
    • AuthErrorCodes

      Size

      TypeBase (1741fef)Merge (95b2813)Diff
      size40.9 kB41.0 kB+78 B (+0.2%)
      size-with-ext-deps61.7 kB61.8 kB+78 B (+0.1%)
    • EmailAuthCredential

      Size

      TypeBase (1741fef)Merge (95b2813)Diff
      size38.7 kB38.8 kB+78 B (+0.2%)
      size-with-ext-deps59.5 kB59.6 kB+78 B (+0.1%)
    • EmailAuthProvider

      Size

      TypeBase (1741fef)Merge (95b2813)Diff
      size40.2 kB40.2 kB+78 B (+0.2%)
      size-with-ext-deps61.2 kB61.3 kB+78 B (+0.1%)
    • FacebookAuthProvider

      Size

      TypeBase (1741fef)Merge (95b2813)Diff
      size40.9 kB41.0 kB+78 B (+0.2%)
      size-with-ext-deps61.7 kB61.8 kB+78 B (+0.1%)
    • FactorId

      Size

      TypeBase (1741fef)Merge (95b2813)Diff
      size35.9 kB35.9 kB+78 B (+0.2%)
      size-with-ext-deps56.6 kB56.7 kB+78 B (+0.1%)
    • GithubAuthProvider

      Size

      TypeBase (1741fef)Merge (95b2813)Diff
      size40.9 kB41.0 kB+78 B (+0.2%)
      size-with-ext-deps61.7 kB61.7 kB+78 B (+0.1%)
    • GoogleAuthProvider

      Size

      TypeBase (1741fef)Merge (95b2813)Diff
      size40.9 kB41.0 kB+78 B (+0.2%)
      size-with-ext-deps61.7 kB61.7 kB+78 B (+0.1%)
    • OAuthCredential

      Size

      TypeBase (1741fef)Merge (95b2813)Diff
      size38.0 kB38.1 kB+78 B (+0.2%)
      size-with-ext-deps58.8 kB58.8 kB+78 B (+0.1%)
    • OAuthProvider

      Size

      TypeBase (1741fef)Merge (95b2813)Diff
      size41.8 kB41.9 kB+78 B (+0.2%)
      size-with-ext-deps62.6 kB62.7 kB+78 B (+0.1%)
    • OperationType

      Size

      TypeBase (1741fef)Merge (95b2813)Diff
      size35.9 kB36.0 kB+78 B (+0.2%)
      size-with-ext-deps56.7 kB56.7 kB+78 B (+0.1%)
    • PhoneAuthCredential

      Size

      TypeBase (1741fef)Merge (95b2813)Diff
      size38.0 kB38.0 kB+78 B (+0.2%)
      size-with-ext-deps58.8 kB58.8 kB+78 B (+0.1%)
    • PhoneAuthProvider

      Size

      TypeBase (1741fef)Merge (95b2813)Diff
      size39.7 kB39.7 kB+78 B (+0.2%)
      size-with-ext-deps60.5 kB60.5 kB+78 B (+0.1%)
    • PhoneMultiFactorGenerator

      Size

      TypeBase (1741fef)Merge (95b2813)Diff
      size36.7 kB36.8 kB+78 B (+0.2%)
      size-with-ext-deps57.5 kB57.6 kB+78 B (+0.1%)
    • ProviderId

      Size

      TypeBase (1741fef)Merge (95b2813)Diff
      size35.9 kB36.0 kB+78 B (+0.2%)
      size-with-ext-deps56.7 kB56.8 kB+78 B (+0.1%)
    • RecaptchaVerifier

      Size

      TypeBase (1741fef)Merge (95b2813)Diff
      size42.0 kB42.1 kB+78 B (+0.2%)
      size-with-ext-deps62.8 kB62.9 kB+78 B (+0.1%)
    • SAMLAuthProvider

      Size

      TypeBase (1741fef)Merge (95b2813)Diff
      size42.1 kB42.2 kB+78 B (+0.2%)
      size-with-ext-deps62.9 kB63.0 kB+78 B (+0.1%)
    • SignInMethod

      Size

      TypeBase (1741fef)Merge (95b2813)Diff
      size36.0 kB36.1 kB+78 B (+0.2%)
      size-with-ext-deps56.8 kB56.8 kB+78 B (+0.1%)
    • TotpMultiFactorGenerator

      Size

      TypeBase (1741fef)Merge (95b2813)Diff
      size38.3 kB38.4 kB+78 B (+0.2%)
      size-with-ext-deps59.1 kB59.2 kB+78 B (+0.1%)
    • TotpSecret

      Size

      TypeBase (1741fef)Merge (95b2813)Diff
      size36.8 kB36.9 kB+78 B (+0.2%)
      size-with-ext-deps57.6 kB57.7 kB+78 B (+0.1%)
    • TwitterAuthProvider

      Size

      TypeBase (1741fef)Merge (95b2813)Diff
      size40.9 kB41.0 kB+78 B (+0.2%)
      size-with-ext-deps61.7 kB61.7 kB+78 B (+0.1%)
    • applyActionCode

      Size

      TypeBase (1741fef)Merge (95b2813)Diff
      size35.9 kB36.0 kB+78 B (+0.2%)
      size-with-ext-deps56.7 kB56.8 kB+78 B (+0.1%)
    • beforeAuthStateChanged

      Size

      TypeBase (1741fef)Merge (95b2813)Diff
      size35.9 kB36.0 kB+78 B (+0.2%)
      size-with-ext-deps56.7 kB56.7 kB+78 B (+0.1%)
    • browserLocalPersistence

      Size

      TypeBase (1741fef)Merge (95b2813)Diff
      size39.3 kB39.3 kB+78 B (+0.2%)
      size-with-ext-deps60.1 kB60.2 kB+78 B (+0.1%)
    • browserPopupRedirectResolver

      Size

      TypeBase (1741fef)Merge (95b2813)Diff
      size59.9 kB60.0 kB+78 B (+0.1%)
      size-with-ext-deps80.9 kB81.0 kB+78 B (+0.1%)
    • browserSessionPersistence

      Size

      TypeBase (1741fef)Merge (95b2813)Diff
      size39.3 kB39.3 kB+78 B (+0.2%)
      size-with-ext-deps60.1 kB60.2 kB+78 B (+0.1%)
    • checkActionCode

      Size

      TypeBase (1741fef)Merge (95b2813)Diff
      size37.1 kB37.1 kB+78 B (+0.2%)
      size-with-ext-deps57.8 kB57.9 kB+78 B (+0.1%)
    • confirmPasswordReset

      Size

      TypeBase (1741fef)Merge (95b2813)Diff
      size36.0 kB36.0 kB+78 B (+0.2%)
      size-with-ext-deps56.8 kB56.8 kB+78 B (+0.1%)
    • connectAuthEmulator

      Size

      TypeBase (1741fef)Merge (95b2813)Diff
      size37.6 kB37.6 kB+78 B (+0.2%)
      size-with-ext-deps58.3 kB58.4 kB+78 B (+0.1%)
    • createUserWithEmailAndPassword

      Size

      TypeBase (1741fef)Merge (95b2813)Diff
      size37.7 kB37.9 kB+195 B (+0.5%)
      size-with-ext-deps58.5 kB58.7 kB+195 B (+0.3%)
    • debugErrorMap

      Size

      TypeBase (1741fef)Merge (95b2813)Diff
      size47.9 kB48.1 kB+165 B (+0.3%)
      size-with-ext-deps68.7 kB68.9 kB+165 B (+0.2%)
    • deleteUser

      Size

      TypeBase (1741fef)Merge (95b2813)Diff
      size35.9 kB35.9 kB+78 B (+0.2%)
      size-with-ext-deps56.6 kB56.7 kB+78 B (+0.1%)
    • fetchSignInMethodsForEmail

      Size

      TypeBase (1741fef)Merge (95b2813)Diff
      size36.2 kB36.2 kB+78 B (+0.2%)
      size-with-ext-deps57.0 kB57.0 kB+78 B (+0.1%)
    • getAdditionalUserInfo

      Size

      TypeBase (1741fef)Merge (95b2813)Diff
      size37.2 kB37.2 kB+78 B (+0.2%)
      size-with-ext-deps57.9 kB58.0 kB+78 B (+0.1%)
    • getAuth

      Size

      TypeBase (1741fef)Merge (95b2813)Diff
      size70.0 kB70.0 kB+78 B (+0.1%)
      size-with-ext-deps97.4 kB97.5 kB+78 B (+0.1%)
    • getIdToken

      Size

      TypeBase (1741fef)Merge (95b2813)Diff
      size35.9 kB35.9 kB+78 B (+0.2%)
      size-with-ext-deps56.6 kB56.7 kB+78 B (+0.1%)
    • getIdTokenResult

      Size

      TypeBase (1741fef)Merge (95b2813)Diff
      size35.8 kB35.9 kB+78 B (+0.2%)
      size-with-ext-deps56.6 kB56.7 kB+78 B (+0.1%)
    • getMultiFactorResolver

      Size

      TypeBase (1741fef)Merge (95b2813)Diff
      size38.7 kB38.8 kB+78 B (+0.2%)
      size-with-ext-deps59.5 kB59.6 kB+78 B (+0.1%)
    • getRedirectResult

      Size

      TypeBase (1741fef)Merge (95b2813)Diff
      size43.4 kB43.4 kB+78 B (+0.2%)
      size-with-ext-deps64.2 kB64.2 kB+78 B (+0.1%)
    • inMemoryPersistence

      Size

      TypeBase (1741fef)Merge (95b2813)Diff
      size35.8 kB35.9 kB+78 B (+0.2%)
      size-with-ext-deps56.6 kB56.7 kB+78 B (+0.1%)
    • indexedDBLocalPersistence

      Size

      TypeBase (1741fef)Merge (95b2813)Diff
      size43.3 kB43.3 kB+78 B (+0.2%)
      size-with-ext-deps64.0 kB64.1 kB+78 B (+0.1%)
    • initializeAuth

      Size

      TypeBase (1741fef)Merge (95b2813)Diff
      size36.1 kB36.2 kB+78 B (+0.2%)
      size-with-ext-deps57.3 kB57.4 kB+78 B (+0.1%)
    • initializeRecaptchaConfig

      Size

      TypeBase (1741fef)Merge (95b2813)Diff
      size35.9 kB36.0 kB+78 B (+0.2%)
      size-with-ext-deps56.7 kB56.8 kB+78 B (+0.1%)
    • isSignInWithEmailLink

      Size

      TypeBase (1741fef)Merge (95b2813)Diff
      size37.0 kB37.1 kB+78 B (+0.2%)
      size-with-ext-deps58.1 kB58.1 kB+78 B (+0.1%)
    • linkWithCredential

      Size

      TypeBase (1741fef)Merge (95b2813)Diff
      size36.9 kB36.9 kB+78 B (+0.2%)
      size-with-ext-deps57.6 kB57.7 kB+78 B (+0.1%)
    • linkWithPhoneNumber

      Size

      TypeBase (1741fef)Merge (95b2813)Diff
      size40.4 kB40.5 kB+78 B (+0.2%)
      size-with-ext-deps61.2 kB61.3 kB+78 B (+0.1%)
    • linkWithPopup

      Size

      TypeBase (1741fef)Merge (95b2813)Diff
      size46.9 kB47.0 kB+78 B (+0.2%)
      size-with-ext-deps67.7 kB67.8 kB+78 B (+0.1%)
    • linkWithRedirect

      Size

      TypeBase (1741fef)Merge (95b2813)Diff
      size42.2 kB42.3 kB+78 B (+0.2%)
      size-with-ext-deps63.0 kB63.0 kB+78 B (+0.1%)
    • multiFactor

      Size

      TypeBase (1741fef)Merge (95b2813)Diff
      size38.0 kB38.1 kB+78 B (+0.2%)
      size-with-ext-deps58.8 kB58.9 kB+78 B (+0.1%)
    • onAuthStateChanged

      Size

      TypeBase (1741fef)Merge (95b2813)Diff
      size35.9 kB36.0 kB+78 B (+0.2%)
      size-with-ext-deps56.7 kB56.7 kB+78 B (+0.1%)
    • onIdTokenChanged

      Size

      TypeBase (1741fef)Merge (95b2813)Diff
      size35.9 kB36.0 kB+78 B (+0.2%)
      size-with-ext-deps56.7 kB56.7 kB+78 B (+0.1%)
    • parseActionCodeURL

      Size

      TypeBase (1741fef)Merge (95b2813)Diff
      size37.0 kB37.0 kB+78 B (+0.2%)
      size-with-ext-deps58.0 kB58.1 kB+78 B (+0.1%)
    • prodErrorMap

      Size

      TypeBase (1741fef)Merge (95b2813)Diff
      size35.8 kB35.9 kB+78 B (+0.2%)
      size-with-ext-deps56.6 kB56.7 kB+78 B (+0.1%)
    • reauthenticateWithCredential

      Size

      TypeBase (1741fef)Merge (95b2813)Diff
      size37.4 kB37.5 kB+78 B (+0.2%)
      size-with-ext-deps58.2 kB58.3 kB+78 B (+0.1%)
    • reauthenticateWithPhoneNumber

      Size

      TypeBase (1741fef)Merge (95b2813)Diff
      size41.0 kB41.0 kB+78 B (+0.2%)
      size-with-ext-deps61.8 kB61.8 kB+78 B (+0.1%)
    • reauthenticateWithPopup

      Size

      TypeBase (1741fef)Merge (95b2813)Diff
      size47.0 kB47.0 kB+78 B (+0.2%)
      size-with-ext-deps67.8 kB67.8 kB+78 B (+0.1%)
    • reauthenticateWithRedirect

      Size

      TypeBase (1741fef)Merge (95b2813)Diff
      size41.9 kB42.0 kB+78 B (+0.2%)
      size-with-ext-deps62.7 kB62.8 kB+78 B (+0.1%)
    • reload

      Size

      TypeBase (1741fef)Merge (95b2813)Diff
      size35.8 kB35.9 kB+78 B (+0.2%)
      size-with-ext-deps56.6 kB56.7 kB+78 B (+0.1%)
    • sendEmailVerification

      Size

      TypeBase (1741fef)Merge (95b2813)Diff
      size36.8 kB36.8 kB+78 B (+0.2%)
      size-with-ext-deps57.5 kB57.6 kB+78 B (+0.1%)
    • sendPasswordResetEmail

      Size

      TypeBase (1741fef)Merge (95b2813)Diff
      size37.5 kB37.6 kB+78 B (+0.2%)
      size-with-ext-deps58.3 kB58.4 kB+78 B (+0.1%)
    • sendSignInLinkToEmail

      Size

      TypeBase (1741fef)Merge (95b2813)Diff
      size37.6 kB37.7 kB+78 B (+0.2%)
      size-with-ext-deps58.4 kB58.4 kB+78 B (+0.1%)
    • setPersistence

      Size

      TypeBase (1741fef)Merge (95b2813)Diff
      size35.9 kB35.9 kB+78 B (+0.2%)
      size-with-ext-deps56.6 kB56.7 kB+78 B (+0.1%)
    • signInAnonymously

      Size

      TypeBase (1741fef)Merge (95b2813)Diff
      size37.0 kB37.1 kB+78 B (+0.2%)
      size-with-ext-deps57.8 kB57.9 kB+78 B (+0.1%)
    • signInWithCredential

      Size

      TypeBase (1741fef)Merge (95b2813)Diff
      size37.2 kB37.3 kB+78 B (+0.2%)
      size-with-ext-deps58.0 kB58.1 kB+78 B (+0.1%)
    • signInWithCustomToken

      Size

      TypeBase (1741fef)Merge (95b2813)Diff
      size36.8 kB36.9 kB+78 B (+0.2%)
      size-with-ext-deps57.6 kB57.7 kB+78 B (+0.1%)
    • signInWithEmailAndPassword

      Size

      TypeBase (1741fef)Merge (95b2813)Diff
      size41.6 kB41.7 kB+78 B (+0.2%)
      size-with-ext-deps62.7 kB62.7 kB+78 B (+0.1%)
    • signInWithEmailLink

      Size

      TypeBase (1741fef)Merge (95b2813)Diff
      size41.8 kB41.9 kB+78 B (+0.2%)
      size-with-ext-deps62.9 kB62.9 kB+78 B (+0.1%)
    • signInWithPhoneNumber

      Size

      TypeBase (1741fef)Merge (95b2813)Diff
      size40.7 kB40.8 kB+78 B (+0.2%)
      size-with-ext-deps61.5 kB61.6 kB+78 B (+0.1%)
    • signInWithPopup

      Size

      TypeBase (1741fef)Merge (95b2813)Diff
      size46.9 kB47.0 kB+78 B (+0.2%)
      size-with-ext-deps67.7 kB67.8 kB+78 B (+0.1%)
    • signInWithRedirect

      Size

      TypeBase (1741fef)Merge (95b2813)Diff
      size41.6 kB41.7 kB+78 B (+0.2%)
      size-with-ext-deps62.4 kB62.5 kB+78 B (+0.1%)
    • signOut

      Size

      TypeBase (1741fef)Merge (95b2813)Diff
      size35.8 kB35.9 kB+78 B (+0.2%)
      size-with-ext-deps56.6 kB56.7 kB+78 B (+0.1%)
    • unlink

      Size

      TypeBase (1741fef)Merge (95b2813)Diff
      size36.4 kB36.5 kB+78 B (+0.2%)
      size-with-ext-deps57.2 kB57.3 kB+78 B (+0.1%)
    • updateCurrentUser

      Size

      TypeBase (1741fef)Merge (95b2813)Diff
      size35.9 kB36.0 kB+78 B (+0.2%)
      size-with-ext-deps56.7 kB56.7 kB+78 B (+0.1%)
    • updateEmail

      Size

      TypeBase (1741fef)Merge (95b2813)Diff
      size36.1 kB36.2 kB+78 B (+0.2%)
      size-with-ext-deps56.9 kB57.0 kB+78 B (+0.1%)
    • updatePassword

      Size

      TypeBase (1741fef)Merge (95b2813)Diff
      size36.1 kB36.2 kB+78 B (+0.2%)
      size-with-ext-deps56.9 kB57.0 kB+78 B (+0.1%)
    • updatePhoneNumber

      Size

      TypeBase (1741fef)Merge (95b2813)Diff
      size36.6 kB36.7 kB+78 B (+0.2%)
      size-with-ext-deps57.4 kB57.4 kB+78 B (+0.1%)
    • updateProfile

      Size

      TypeBase (1741fef)Merge (95b2813)Diff
      size36.3 kB36.4 kB+78 B (+0.2%)
      size-with-ext-deps57.1 kB57.2 kB+78 B (+0.1%)
    • useDeviceLanguage

      Size

      TypeBase (1741fef)Merge (95b2813)Diff
      size35.9 kB35.9 kB+78 B (+0.2%)
      size-with-ext-deps56.6 kB56.7 kB+78 B (+0.1%)
    • verifyBeforeUpdateEmail

      Size

      TypeBase (1741fef)Merge (95b2813)Diff
      size36.8 kB36.9 kB+78 B (+0.2%)
      size-with-ext-deps57.6 kB57.6 kB+78 B (+0.1%)
    • verifyPasswordResetCode

      Size

      TypeBase (1741fef)Merge (95b2813)Diff
      size37.1 kB37.2 kB+78 B (+0.2%)
      size-with-ext-deps57.9 kB58.0 kB+78 B (+0.1%)

Test Logs

  1. https://storage.googleapis.com/firebase-sdk-metric-reports/5zbiMmJOsU.html

@ch5zzy ch5zzy requested a review from Xiaoshouzi-gh June 26, 2023 21:55
@ch5zzy ch5zzy changed the title Update password policy in sign up flow (#3) Update password policy in sign up flow Jun 30, 2023
@ch5zzy ch5zzy marked this pull request as ready for review June 30, 2023 19:14
@ch5zzy ch5zzy requested review from lisajian, prameshj, renkelvin, sam-gc and a team as code owners June 30, 2023 19:14
Copy link

@Xiaoshouzi-gh Xiaoshouzi-gh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ch5zzy
Copy link
Contributor Author

ch5zzy commented Jul 6, 2023

I thought of an error case where a PASSWORD_DOES_NOT_MEET_REQUIREMENTS error is received and the new policy fetched from the backend has an unsupported schema version. I discussed this with Chuan and we decided that to propagate the UNSUPPORTED_PASSWORD_POLICY_SCHEMA_VERSION error to the developer, we can store the schema version internally and check this value when validatePassword is called. I'll do this in a future PR but wanted to document this here since it is related to the auth flow.

@ch5zzy ch5zzy merged commit 8be31e5 into password-policy Jul 6, 2023
@ch5zzy ch5zzy deleted the update-password-policy-in-sign-up-flow branch July 6, 2023 20:11
@firebase firebase locked and limited conversation to collaborators Aug 6, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants