@@ -150,8 +150,8 @@ async function getActiveUserBlocking() {
150150}
151151
152152class RefreshIdpTokenResult {
153- idpConfigId ;
154- idToken ;
153+ idpConfigId ;
154+ idToken ;
155155}
156156
157157class TokenRefreshHandlerImpl {
@@ -220,11 +220,11 @@ class TokenRefreshHandlerImpl {
220220 const $modal = $ ( `#${ modalId } ` ) ;
221221
222222 // 3. Setup Event Handlers
223-
223+
224224 // Handle Submit button click
225225 $modal . find ( '#token-submit-btn' ) . on ( 'click' , ( ) => {
226226 isSubmitted = true ;
227-
227+
228228 // Read values from *both* input fields
229229 const configId = $modal . find ( '#idp-config-id-input-field' ) . val ( ) ;
230230 const token = $modal . find ( '#id-token-input-field' ) . val ( ) ;
@@ -235,14 +235,14 @@ class TokenRefreshHandlerImpl {
235235 const result = new RefreshIdpTokenResult ( ) ;
236236 result . idpConfigId = configId ;
237237 result . idToken = token ;
238-
238+
239239 resolve ( result ) ; // Resolve the promise with the object
240240 } ) ;
241241
242242 // Handle modal being closed (by 'x', 'Cancel' button, backdrop click, or ESC)
243243 $modal . on ( 'hidden.bs.modal' , ( ) => {
244244 $modal . remove ( ) ; // Clean up the modal from the DOM
245-
245+
246246 // If the modal was hidden *without* submitting, reject the promise
247247 if ( ! isSubmitted ) {
248248 reject ( new Error ( 'User cancelled token input.' ) ) ;
@@ -255,7 +255,6 @@ class TokenRefreshHandlerImpl {
255255 }
256256}
257257
258-
259258/**
260259 * Refreshes the current user data in the UI, displaying a user info box if
261260 * a user is signed in, or removing it.
@@ -2198,7 +2197,7 @@ function initApp() {
21982197 popupRedirectResolver : browserPopupRedirectResolver ,
21992198 tenantConfig : tenantConfig
22002199 } ) ;
2201- const tokenRefreshHandler = new TokenRefreshHandlerImpl ( ) ;
2200+ const tokenRefreshHandler = new TokenRefreshHandlerImpl ( ) ;
22022201 regionalAuth . setTokenRefreshHandler ( tokenRefreshHandler ) ;
22032202
22042203 const firebaseTokenStatus = document . getElementById ( 'firebase-token-status' ) ;
@@ -2213,7 +2212,6 @@ function initApp() {
22132212 console . log ( 'firebaseToken after delay: ' , regionalAuth . firebaseToken ) ;
22142213 } , 1000 ) ;
22152214
2216-
22172215 tempApp = initializeApp (
22182216 {
22192217 apiKey : config . apiKey ,
0 commit comments