Skip to content

Commit 337738f

Browse files
committed
Reverting demo app changes
1 parent f706798 commit 337738f

File tree

2 files changed

+0
-17
lines changed

2 files changed

+0
-17
lines changed

packages/auth/demo/public/index.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -853,7 +853,6 @@
853853
</div>
854854
<div class="tab-pane" id="tab-byo-ciam-content">
855855
<h2>Sign in with your CIAM token</h2>
856-
<div id="firebase-token-status">No CIAM token found. User not logged in.</div>
857856
<input type="text" id="byo-ciam-token"
858857
class="form-control" placeholder="Enter CIAM token" />
859858
<button class="btn btn-block btn-primary"

packages/auth/demo/src/index.js

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1305,7 +1305,6 @@ function onRefreshToken() {
13051305
function onSignOut() {
13061306
setLastUser(auth.currentUser);
13071307
auth.signOut().then(signOut, onAuthError);
1308-
regionalAuth.signOut();
13091308
}
13101309

13111310
/**
@@ -1521,16 +1520,12 @@ async function exchangeCIAMToken(token) {
15211520
function onExchangeToken(event) {
15221521
event.preventDefault();
15231522
const byoCiamInput = document.getElementById('byo-ciam-token');
1524-
const firebaseTokenStatus = document.getElementById('firebase-token-status');
15251523

1526-
firebaseTokenStatus.textContent = 'Exchanging token...';
15271524
exchangeCIAMToken(byoCiamInput.value)
15281525
.then(response => {
1529-
firebaseTokenStatus.textContent = '✅ Firebase token is set: ' + response;
15301526
console.log('Token:', response);
15311527
})
15321528
.catch(error => {
1533-
(firebaseTokenStatus.textContent = 'Error exchanging token: '), error;
15341529
console.error('Error exchanging token:', error);
15351530
});
15361531
}
@@ -2092,17 +2087,6 @@ function initApp() {
20922087
tenantConfig: tenantConfig
20932088
});
20942089

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);
21062090
tempApp = initializeApp(
21072091
{
21082092
apiKey: config.apiKey,

0 commit comments

Comments
 (0)