@@ -1305,7 +1305,6 @@ function onRefreshToken() {
1305
1305
function onSignOut ( ) {
1306
1306
setLastUser ( auth . currentUser ) ;
1307
1307
auth . signOut ( ) . then ( signOut , onAuthError ) ;
1308
- regionalAuth . signOut ( ) ;
1309
1308
}
1310
1309
1311
1310
/**
@@ -1521,16 +1520,12 @@ async function exchangeCIAMToken(token) {
1521
1520
function onExchangeToken ( event ) {
1522
1521
event . preventDefault ( ) ;
1523
1522
const byoCiamInput = document . getElementById ( 'byo-ciam-token' ) ;
1524
- const firebaseTokenStatus = document . getElementById ( 'firebase-token-status' ) ;
1525
1523
1526
- firebaseTokenStatus . textContent = 'Exchanging token...' ;
1527
1524
exchangeCIAMToken ( byoCiamInput . value )
1528
1525
. then ( response => {
1529
- firebaseTokenStatus . textContent = '✅ Firebase token is set: ' + response ;
1530
1526
console . log ( 'Token:' , response ) ;
1531
1527
} )
1532
1528
. catch ( error => {
1533
- ( firebaseTokenStatus . textContent = 'Error exchanging token: ' ) , error ;
1534
1529
console . error ( 'Error exchanging token:' , error ) ;
1535
1530
} ) ;
1536
1531
}
@@ -2092,17 +2087,6 @@ function initApp() {
2092
2087
tenantConfig : tenantConfig
2093
2088
} ) ;
2094
2089
2095
- const firebaseTokenStatus = document . getElementById ( 'firebase-token-status' ) ;
2096
- setTimeout ( ( ) => {
2097
- if ( regionalAuth . firebaseToken ) {
2098
- firebaseTokenStatus . textContent =
2099
- '✅ Firebase token is set: ' + regionalAuth . firebaseToken . token ;
2100
- } else {
2101
- firebaseTokenStatus . textContent =
2102
- 'No CIAM token found. User not logged in.' ;
2103
- }
2104
- console . log ( 'firebaseToken after delay: ' , regionalAuth . firebaseToken ) ;
2105
- } , 1000 ) ;
2106
2090
tempApp = initializeApp (
2107
2091
{
2108
2092
apiKey : config . apiKey ,
0 commit comments