Skip to content

Commit

Permalink
FR-17841- remove the test code
Browse files Browse the repository at this point in the history
  • Loading branch information
vladFrontegg committed Oct 5, 2024
1 parent d22c4c7 commit ccac73d
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions packages/example-pages/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,6 @@ export function Index() {
const loginWithRedirect = useLoginWithRedirect();
const [state, setState] = useState({ userAgent: '', id: -1 });
const logoutHosted = useLogoutHostedLogin();
const { switchTenant } = useAuthActions();
const handleTenantSwitch = () => {
switchTenant({
tenantId: user?.tenantId === 'sso_per_tenant_1' ? 'a4700c12-4119-4add-a7f0-00d31ea279da' : 'sso_per_tenant_1',
});
};
console.log('user', user);

/*
* Replace the elements below with your own.
Expand All @@ -28,16 +21,6 @@ export function Index() {
<div>{isAuthenticated ? user?.email : 'not logged in'}</div>
<br />
<br />
<button
onClick={() => {
handleTenantSwitch();
}}
>
Switch tenant to{' '}
{user?.tenantId === 'sso_per_tenant_1' ? 'a4700c12-4119-4add-a7f0-00d31ea279da' : 'sso_per_tenant_1'}
</button>
<br />
<br />
<button
onClick={() => {
loginWithRedirect();
Expand Down

0 comments on commit ccac73d

Please sign in to comment.