Skip to content

Write Firebase Token to Auth instance during exchange_token API #9060

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 4 commits into from
May 30, 2025

Conversation

mansisampat
Copy link
Contributor

Discussion

  • Write Firebase Token to Auth instance during exchange_token API

Testing

  • Added Unit Test

Copy link

changeset-bot bot commented May 26, 2025

⚠️ No Changeset found

Latest commit: 1f93f82

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

Copy link
Contributor

Vertex AI Mock Responses Check ⚠️

A newer major version of the mock responses for Vertex AI unit tests is available. update_vertexai_responses.sh should be updated to clone the latest version of the responses: v13.0

@google-oss-bot
Copy link
Contributor

google-oss-bot commented May 26, 2025

Size Report 1

Affected Products

  • @firebase/auth

    TypeBase (ffec9ba)Merge (82dc003)Diff
    browser195 kB196 kB+241 B (+0.1%)
    cordova168 kB168 kB+241 B (+0.1%)
    main150 kB150 kB+241 B (+0.2%)
    module195 kB196 kB+241 B (+0.1%)
    react-native168 kB168 kB+241 B (+0.1%)
  • @firebase/auth-cordova

    TypeBase (ffec9ba)Merge (82dc003)Diff
    browser168 kB168 kB+241 B (+0.1%)
    module168 kB168 kB+241 B (+0.1%)
  • @firebase/auth-web-extension

    TypeBase (ffec9ba)Merge (82dc003)Diff
    browser145 kB145 kB+241 B (+0.2%)
    main162 kB162 kB+241 B (+0.1%)
    module145 kB145 kB+241 B (+0.2%)
  • @firebase/auth/internal

    TypeBase (ffec9ba)Merge (82dc003)Diff
    browser206 kB206 kB+241 B (+0.1%)
    main176 kB176 kB+241 B (+0.1%)
    module206 kB206 kB+241 B (+0.1%)
  • bundle

    TypeBase (ffec9ba)Merge (82dc003)Diff
    auth (Anonymous)78.2 kB78.3 kB+82 B (+0.1%)
    auth (EmailAndPassword)88.4 kB88.4 kB+82 B (+0.1%)
    auth (GoogleFBTwitterGitHubPopup)110 kB110 kB+82 B (+0.1%)
    auth (GooglePopup)102 kB102 kB+82 B (+0.1%)
    auth (GoogleRedirect)102 kB103 kB+82 B (+0.1%)
    auth (Phone)95.8 kB95.9 kB+82 B (+0.1%)
  • firebase

    TypeBase (ffec9ba)Merge (82dc003)Diff
    firebase-auth-compat.js146 kB146 kB+80 B (+0.1%)
    firebase-auth-cordova.js144 kB144 kB+180 B (+0.1%)
    firebase-auth-web-extension.js127 kB127 kB+180 B (+0.1%)
    firebase-auth.js164 kB165 kB+180 B (+0.1%)
    firebase-compat.js803 kB803 kB+80 B (+0.0%)

Test Logs

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

@google-oss-bot
Copy link
Contributor

google-oss-bot commented May 26, 2025

Size Analysis Report 1

Affected Products

  • @firebase/auth

    • ActionCodeOperation

      Size

      TypeBase (ffec9ba)Merge (82dc003)Diff
      size41.1 kB41.2 kB+82 B (+0.2%)
      size-with-ext-deps63.1 kB63.2 kB+82 B (+0.1%)
    • ActionCodeURL

      Size

      TypeBase (ffec9ba)Merge (82dc003)Diff
      size41.9 kB42.0 kB+82 B (+0.2%)
      size-with-ext-deps64.2 kB64.3 kB+82 B (+0.1%)
    • AuthCredential

      Size

      TypeBase (ffec9ba)Merge (82dc003)Diff
      size41.1 kB41.2 kB+82 B (+0.2%)
      size-with-ext-deps63.2 kB63.2 kB+82 B (+0.1%)
    • AuthErrorCodes

      Size

      TypeBase (ffec9ba)Merge (82dc003)Diff
      size46.0 kB46.1 kB+82 B (+0.2%)
      size-with-ext-deps68.1 kB68.2 kB+82 B (+0.1%)
    • EmailAuthCredential

      Size

      TypeBase (ffec9ba)Merge (82dc003)Diff
      size48.7 kB48.8 kB+82 B (+0.2%)
      size-with-ext-deps70.7 kB70.8 kB+82 B (+0.1%)
    • EmailAuthProvider

      Size

      TypeBase (ffec9ba)Merge (82dc003)Diff
      size50.1 kB50.2 kB+82 B (+0.2%)
      size-with-ext-deps72.4 kB72.5 kB+82 B (+0.1%)
    • FacebookAuthProvider

      Size

      TypeBase (ffec9ba)Merge (82dc003)Diff
      size45.9 kB46.0 kB+82 B (+0.2%)
      size-with-ext-deps68.0 kB68.0 kB+82 B (+0.1%)
    • FactorId

      Size

      TypeBase (ffec9ba)Merge (82dc003)Diff
      size40.9 kB41.0 kB+82 B (+0.2%)
      size-with-ext-deps62.9 kB63.0 kB+82 B (+0.1%)
    • GithubAuthProvider

      Size

      TypeBase (ffec9ba)Merge (82dc003)Diff
      size45.9 kB46.0 kB+82 B (+0.2%)
      size-with-ext-deps68.0 kB68.0 kB+82 B (+0.1%)
    • GoogleAuthProvider

      Size

      TypeBase (ffec9ba)Merge (82dc003)Diff
      size45.9 kB46.0 kB+82 B (+0.2%)
      size-with-ext-deps68.0 kB68.0 kB+82 B (+0.1%)
    • OAuthCredential

      Size

      TypeBase (ffec9ba)Merge (82dc003)Diff
      size43.0 kB43.1 kB+82 B (+0.2%)
      size-with-ext-deps65.1 kB65.1 kB+82 B (+0.1%)
    • OAuthProvider

      Size

      TypeBase (ffec9ba)Merge (82dc003)Diff
      size46.8 kB46.9 kB+82 B (+0.2%)
      size-with-ext-deps68.9 kB69.0 kB+82 B (+0.1%)
    • OperationType

      Size

      TypeBase (ffec9ba)Merge (82dc003)Diff
      size40.9 kB41.0 kB+82 B (+0.2%)
      size-with-ext-deps63.0 kB63.0 kB+82 B (+0.1%)
    • PhoneAuthCredential

      Size

      TypeBase (ffec9ba)Merge (82dc003)Diff
      size43.0 kB43.1 kB+82 B (+0.2%)
      size-with-ext-deps65.1 kB65.1 kB+82 B (+0.1%)
    • PhoneAuthProvider

      Size

      TypeBase (ffec9ba)Merge (82dc003)Diff
      size52.3 kB52.4 kB+82 B (+0.2%)
      size-with-ext-deps74.4 kB74.5 kB+82 B (+0.1%)
    • PhoneMultiFactorGenerator

      Size

      TypeBase (ffec9ba)Merge (82dc003)Diff
      size41.7 kB41.8 kB+82 B (+0.2%)
      size-with-ext-deps63.8 kB63.8 kB+82 B (+0.1%)
    • ProviderId

      Size

      TypeBase (ffec9ba)Merge (82dc003)Diff
      size41.0 kB41.0 kB+82 B (+0.2%)
      size-with-ext-deps63.0 kB63.1 kB+82 B (+0.1%)
    • RecaptchaVerifier

      Size

      TypeBase (ffec9ba)Merge (82dc003)Diff
      size47.8 kB47.9 kB+82 B (+0.2%)
      size-with-ext-deps69.9 kB70.0 kB+82 B (+0.1%)
    • SAMLAuthProvider

      Size

      TypeBase (ffec9ba)Merge (82dc003)Diff
      size47.2 kB47.2 kB+82 B (+0.2%)
      size-with-ext-deps69.2 kB69.3 kB+82 B (+0.1%)
    • SignInMethod

      Size

      TypeBase (ffec9ba)Merge (82dc003)Diff
      size41.0 kB41.1 kB+82 B (+0.2%)
      size-with-ext-deps63.0 kB63.1 kB+82 B (+0.1%)
    • TotpMultiFactorGenerator

      Size

      TypeBase (ffec9ba)Merge (82dc003)Diff
      size43.4 kB43.4 kB+82 B (+0.2%)
      size-with-ext-deps65.4 kB65.5 kB+82 B (+0.1%)
    • TotpSecret

      Size

      TypeBase (ffec9ba)Merge (82dc003)Diff
      size41.8 kB41.9 kB+82 B (+0.2%)
      size-with-ext-deps63.9 kB63.9 kB+82 B (+0.1%)
    • TwitterAuthProvider

      Size

      TypeBase (ffec9ba)Merge (82dc003)Diff
      size45.9 kB46.0 kB+82 B (+0.2%)
      size-with-ext-deps68.0 kB68.0 kB+82 B (+0.1%)
    • applyActionCode

      Size

      TypeBase (ffec9ba)Merge (82dc003)Diff
      size41.0 kB41.0 kB+82 B (+0.2%)
      size-with-ext-deps63.0 kB63.1 kB+82 B (+0.1%)
    • beforeAuthStateChanged

      Size

      TypeBase (ffec9ba)Merge (82dc003)Diff
      size40.9 kB41.0 kB+82 B (+0.2%)
      size-with-ext-deps63.0 kB63.0 kB+82 B (+0.1%)
    • browserCookiePersistence

      Size

      TypeBase (ffec9ba)Merge (82dc003)Diff
      size42.8 kB42.9 kB+82 B (+0.2%)
      size-with-ext-deps64.8 kB64.9 kB+82 B (+0.1%)
    • browserLocalPersistence

      Size

      TypeBase (ffec9ba)Merge (82dc003)Diff
      size43.9 kB44.0 kB+82 B (+0.2%)
      size-with-ext-deps66.0 kB66.1 kB+82 B (+0.1%)
    • browserPopupRedirectResolver

      Size

      TypeBase (ffec9ba)Merge (82dc003)Diff
      size65.4 kB65.5 kB+82 B (+0.1%)
      size-with-ext-deps87.7 kB87.8 kB+82 B (+0.1%)
    • browserSessionPersistence

      Size

      TypeBase (ffec9ba)Merge (82dc003)Diff
      size43.9 kB44.0 kB+82 B (+0.2%)
      size-with-ext-deps66.0 kB66.1 kB+82 B (+0.1%)
    • checkActionCode

      Size

      TypeBase (ffec9ba)Merge (82dc003)Diff
      size42.1 kB42.2 kB+82 B (+0.2%)
      size-with-ext-deps64.1 kB64.2 kB+82 B (+0.1%)
    • confirmPasswordReset

      Size

      TypeBase (ffec9ba)Merge (82dc003)Diff
      size41.2 kB41.3 kB+82 B (+0.2%)
      size-with-ext-deps63.2 kB63.3 kB+82 B (+0.1%)
    • connectAuthEmulator

      Size

      TypeBase (ffec9ba)Merge (82dc003)Diff
      size42.8 kB42.9 kB+82 B (+0.2%)
      size-with-ext-deps69.6 kB69.7 kB+82 B (+0.1%)
    • createUserWithEmailAndPassword

      Size

      TypeBase (ffec9ba)Merge (82dc003)Diff
      size47.8 kB47.9 kB+82 B (+0.2%)
      size-with-ext-deps69.9 kB70.0 kB+82 B (+0.1%)
    • debugErrorMap

      Size

      TypeBase (ffec9ba)Merge (82dc003)Diff
      size53.3 kB53.4 kB+82 B (+0.2%)
      size-with-ext-deps75.3 kB75.4 kB+82 B (+0.1%)
    • deleteUser

      Size

      TypeBase (ffec9ba)Merge (82dc003)Diff
      size40.9 kB41.0 kB+82 B (+0.2%)
      size-with-ext-deps62.9 kB63.0 kB+82 B (+0.1%)
    • exchangeToken

      Size

      TypeBase (ffec9ba)Merge (82dc003)Diff
      size41.6 kB41.8 kB+182 B (+0.4%)
      size-with-ext-deps63.7 kB63.8 kB+182 B (+0.3%)
    • fetchSignInMethodsForEmail

      Size

      TypeBase (ffec9ba)Merge (82dc003)Diff
      size41.2 kB41.3 kB+82 B (+0.2%)
      size-with-ext-deps63.2 kB63.3 kB+82 B (+0.1%)
    • getAdditionalUserInfo

      Size

      TypeBase (ffec9ba)Merge (82dc003)Diff
      size42.2 kB42.3 kB+82 B (+0.2%)
      size-with-ext-deps64.2 kB64.3 kB+82 B (+0.1%)
    • getAuth

      Size

      TypeBase (ffec9ba)Merge (82dc003)Diff
      size75.9 kB76.0 kB+82 B (+0.1%)
      size-with-ext-deps109 kB109 kB+82 B (+0.1%)
    • getIdToken

      Size

      TypeBase (ffec9ba)Merge (82dc003)Diff
      size40.9 kB41.0 kB+82 B (+0.2%)
      size-with-ext-deps62.9 kB63.0 kB+82 B (+0.1%)
    • getIdTokenResult

      Size

      TypeBase (ffec9ba)Merge (82dc003)Diff
      size40.8 kB40.9 kB+82 B (+0.2%)
      size-with-ext-deps62.9 kB63.0 kB+82 B (+0.1%)
    • getMultiFactorResolver

      Size

      TypeBase (ffec9ba)Merge (82dc003)Diff
      size43.7 kB43.8 kB+82 B (+0.2%)
      size-with-ext-deps65.8 kB65.9 kB+82 B (+0.1%)
    • getRedirectResult

      Size

      TypeBase (ffec9ba)Merge (82dc003)Diff
      size48.5 kB48.6 kB+82 B (+0.2%)
      size-with-ext-deps70.6 kB70.7 kB+82 B (+0.1%)
    • inMemoryPersistence

      Size

      TypeBase (ffec9ba)Merge (82dc003)Diff
      size40.8 kB40.9 kB+82 B (+0.2%)
      size-with-ext-deps62.9 kB63.0 kB+82 B (+0.1%)
    • indexedDBLocalPersistence

      Size

      TypeBase (ffec9ba)Merge (82dc003)Diff
      size48.3 kB48.4 kB+82 B (+0.2%)
      size-with-ext-deps70.3 kB70.4 kB+82 B (+0.1%)
    • initializeAuth

      Size

      TypeBase (ffec9ba)Merge (82dc003)Diff
      size41.1 kB41.2 kB+82 B (+0.2%)
      size-with-ext-deps63.6 kB63.7 kB+82 B (+0.1%)
    • initializeRecaptchaConfig

      Size

      TypeBase (ffec9ba)Merge (82dc003)Diff
      size44.6 kB44.7 kB+82 B (+0.2%)
      size-with-ext-deps66.7 kB66.7 kB+82 B (+0.1%)
    • isSignInWithEmailLink

      Size

      TypeBase (ffec9ba)Merge (82dc003)Diff
      size42.0 kB42.1 kB+82 B (+0.2%)
      size-with-ext-deps64.3 kB64.4 kB+82 B (+0.1%)
    • linkWithCredential

      Size

      TypeBase (ffec9ba)Merge (82dc003)Diff
      size41.9 kB42.0 kB+82 B (+0.2%)
      size-with-ext-deps63.9 kB64.0 kB+82 B (+0.1%)
    • linkWithPhoneNumber

      Size

      TypeBase (ffec9ba)Merge (82dc003)Diff
      size53.1 kB53.2 kB+82 B (+0.2%)
      size-with-ext-deps75.2 kB75.2 kB+82 B (+0.1%)
    • linkWithPopup

      Size

      TypeBase (ffec9ba)Merge (82dc003)Diff
      size52.0 kB52.1 kB+82 B (+0.2%)
      size-with-ext-deps74.1 kB74.2 kB+82 B (+0.1%)
    • linkWithRedirect

      Size

      TypeBase (ffec9ba)Merge (82dc003)Diff
      size47.2 kB47.3 kB+82 B (+0.2%)
      size-with-ext-deps69.3 kB69.3 kB+82 B (+0.1%)
    • multiFactor

      Size

      TypeBase (ffec9ba)Merge (82dc003)Diff
      size43.1 kB43.1 kB+82 B (+0.2%)
      size-with-ext-deps65.1 kB65.2 kB+82 B (+0.1%)
    • onAuthStateChanged

      Size

      TypeBase (ffec9ba)Merge (82dc003)Diff
      size40.9 kB41.0 kB+82 B (+0.2%)
      size-with-ext-deps63.0 kB63.0 kB+82 B (+0.1%)
    • onIdTokenChanged

      Size

      TypeBase (ffec9ba)Merge (82dc003)Diff
      size40.9 kB41.0 kB+82 B (+0.2%)
      size-with-ext-deps62.9 kB63.0 kB+82 B (+0.1%)
    • parseActionCodeURL

      Size

      TypeBase (ffec9ba)Merge (82dc003)Diff
      size42.0 kB42.0 kB+82 B (+0.2%)
      size-with-ext-deps64.3 kB64.3 kB+82 B (+0.1%)
    • prodErrorMap

      Size

      TypeBase (ffec9ba)Merge (82dc003)Diff
      size40.8 kB40.9 kB+82 B (+0.2%)
      size-with-ext-deps62.9 kB63.0 kB+82 B (+0.1%)
    • reauthenticateWithCredential

      Size

      TypeBase (ffec9ba)Merge (82dc003)Diff
      size42.5 kB42.6 kB+82 B (+0.2%)
      size-with-ext-deps64.5 kB64.6 kB+82 B (+0.1%)
    • reauthenticateWithPhoneNumber

      Size

      TypeBase (ffec9ba)Merge (82dc003)Diff
      size53.7 kB53.8 kB+82 B (+0.2%)
      size-with-ext-deps75.8 kB75.9 kB+82 B (+0.1%)
    • reauthenticateWithPopup

      Size

      TypeBase (ffec9ba)Merge (82dc003)Diff
      size52.2 kB52.2 kB+82 B (+0.2%)
      size-with-ext-deps74.2 kB74.3 kB+82 B (+0.1%)
    • reauthenticateWithRedirect

      Size

      TypeBase (ffec9ba)Merge (82dc003)Diff
      size47.0 kB47.1 kB+82 B (+0.2%)
      size-with-ext-deps69.1 kB69.1 kB+82 B (+0.1%)
    • reload

      Size

      TypeBase (ffec9ba)Merge (82dc003)Diff
      size40.8 kB40.9 kB+82 B (+0.2%)
      size-with-ext-deps62.9 kB63.0 kB+82 B (+0.1%)
    • revokeAccessToken

      Size

      TypeBase (ffec9ba)Merge (82dc003)Diff
      size40.9 kB41.0 kB+82 B (+0.2%)
      size-with-ext-deps63.0 kB63.0 kB+82 B (+0.1%)
    • sendEmailVerification

      Size

      TypeBase (ffec9ba)Merge (82dc003)Diff
      size41.9 kB42.0 kB+82 B (+0.2%)
      size-with-ext-deps64.0 kB64.0 kB+82 B (+0.1%)
    • sendPasswordResetEmail

      Size

      TypeBase (ffec9ba)Merge (82dc003)Diff
      size47.5 kB47.6 kB+82 B (+0.2%)
      size-with-ext-deps69.6 kB69.6 kB+82 B (+0.1%)
    • sendSignInLinkToEmail

      Size

      TypeBase (ffec9ba)Merge (82dc003)Diff
      size47.6 kB47.6 kB+82 B (+0.2%)
      size-with-ext-deps69.6 kB69.7 kB+82 B (+0.1%)
    • setPersistence

      Size

      TypeBase (ffec9ba)Merge (82dc003)Diff
      size40.9 kB41.0 kB+82 B (+0.2%)
      size-with-ext-deps62.9 kB63.0 kB+82 B (+0.1%)
    • signInAnonymously

      Size

      TypeBase (ffec9ba)Merge (82dc003)Diff
      size42.1 kB42.1 kB+82 B (+0.2%)
      size-with-ext-deps64.1 kB64.2 kB+82 B (+0.1%)
    • signInWithCredential

      Size

      TypeBase (ffec9ba)Merge (82dc003)Diff
      size42.3 kB42.4 kB+82 B (+0.2%)
      size-with-ext-deps64.3 kB64.4 kB+82 B (+0.1%)
    • signInWithCustomToken

      Size

      TypeBase (ffec9ba)Merge (82dc003)Diff
      size41.9 kB42.0 kB+82 B (+0.2%)
      size-with-ext-deps64.0 kB64.0 kB+82 B (+0.1%)
    • signInWithEmailAndPassword

      Size

      TypeBase (ffec9ba)Merge (82dc003)Diff
      size51.8 kB51.9 kB+82 B (+0.2%)
      size-with-ext-deps74.2 kB74.2 kB+82 B (+0.1%)
    • signInWithEmailLink

      Size

      TypeBase (ffec9ba)Merge (82dc003)Diff
      size51.8 kB51.9 kB+82 B (+0.2%)
      size-with-ext-deps74.2 kB74.2 kB+82 B (+0.1%)
    • signInWithPhoneNumber

      Size

      TypeBase (ffec9ba)Merge (82dc003)Diff
      size53.5 kB53.6 kB+82 B (+0.2%)
      size-with-ext-deps75.6 kB75.7 kB+82 B (+0.1%)
    • signInWithPopup

      Size

      TypeBase (ffec9ba)Merge (82dc003)Diff
      size52.1 kB52.2 kB+82 B (+0.2%)
      size-with-ext-deps74.2 kB74.3 kB+82 B (+0.1%)
    • signInWithRedirect

      Size

      TypeBase (ffec9ba)Merge (82dc003)Diff
      size46.7 kB46.8 kB+82 B (+0.2%)
      size-with-ext-deps68.8 kB68.8 kB+82 B (+0.1%)
    • signOut

      Size

      TypeBase (ffec9ba)Merge (82dc003)Diff
      size40.9 kB40.9 kB+82 B (+0.2%)
      size-with-ext-deps62.9 kB63.0 kB+82 B (+0.1%)
    • unlink

      Size

      TypeBase (ffec9ba)Merge (82dc003)Diff
      size41.4 kB41.5 kB+82 B (+0.2%)
      size-with-ext-deps63.5 kB63.6 kB+82 B (+0.1%)
    • updateCurrentUser

      Size

      TypeBase (ffec9ba)Merge (82dc003)Diff
      size40.9 kB41.0 kB+82 B (+0.2%)
      size-with-ext-deps62.9 kB63.0 kB+82 B (+0.1%)
    • updateEmail

      Size

      TypeBase (ffec9ba)Merge (82dc003)Diff
      size41.2 kB41.3 kB+82 B (+0.2%)
      size-with-ext-deps63.3 kB63.4 kB+82 B (+0.1%)
    • updatePassword

      Size

      TypeBase (ffec9ba)Merge (82dc003)Diff
      size41.2 kB41.2 kB+82 B (+0.2%)
      size-with-ext-deps63.2 kB63.3 kB+82 B (+0.1%)
    • updatePhoneNumber

      Size

      TypeBase (ffec9ba)Merge (82dc003)Diff
      size41.7 kB41.7 kB+82 B (+0.2%)
      size-with-ext-deps63.7 kB63.8 kB+82 B (+0.1%)
    • updateProfile

      Size

      TypeBase (ffec9ba)Merge (82dc003)Diff
      size41.3 kB41.4 kB+82 B (+0.2%)
      size-with-ext-deps63.4 kB63.5 kB+82 B (+0.1%)
    • useDeviceLanguage

      Size

      TypeBase (ffec9ba)Merge (82dc003)Diff
      size40.9 kB41.0 kB+82 B (+0.2%)
      size-with-ext-deps62.9 kB63.0 kB+82 B (+0.1%)
    • validatePassword

      Size

      TypeBase (ffec9ba)Merge (82dc003)Diff
      size40.9 kB41.0 kB+82 B (+0.2%)
      size-with-ext-deps63.0 kB63.0 kB+82 B (+0.1%)
    • verifyBeforeUpdateEmail

      Size

      TypeBase (ffec9ba)Merge (82dc003)Diff
      size41.9 kB42.0 kB+82 B (+0.2%)
      size-with-ext-deps64.0 kB64.1 kB+82 B (+0.1%)
    • verifyPasswordResetCode

      Size

      TypeBase (ffec9ba)Merge (82dc003)Diff
      size42.2 kB42.2 kB+82 B (+0.2%)
      size-with-ext-deps64.2 kB64.3 kB+82 B (+0.1%)

Test Logs

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

@mansisampat mansisampat requested a review from a team as a code owner May 26, 2025 06:52
accessToken: string;
expiresIn?: string;
// The time when the access token expires.
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: Is this in seconds?

Copy link
Contributor Author

@mansisampat mansisampat May 29, 2025

Choose a reason for hiding this comment

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

Yes, The expiresIn is in seconds.

@@ -455,6 +457,14 @@ export class AuthImpl implements AuthInternal, _FirebaseService {
});
}

async _updateFirebaseToken(
firebaseToken: FirebaseToken | null
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we have to accept null here?

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah i just saw your new changes in https://github.com/firebase/firebase-js-sdk/pull/9061/files. If this.firebaseToken can be null, then this makes sense.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Correct. We are updating FirebaseToken with null after token expiry.

export interface FirebaseToken {
// The firebase access token (JWT signed by Firebase Auth).
readonly token: string;
// The time when the access token expires.
Copy link
Contributor

Choose a reason for hiding this comment

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

is this in seconds? Asking because I see you're * 1000 in the above change.

Copy link
Contributor

Choose a reason for hiding this comment

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

Looks like it's a timestamp (in milliseconds since epoch)? Could we clarify that in a comment to be more clear? Thanks!

@mansisampat mansisampat merged commit b3061f2 into gcip-byociam-web May 30, 2025
99 of 111 checks passed
@mansisampat mansisampat deleted the sammansi-gcip-byociam-web branch May 30, 2025 05:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants