<script lang="ts">
    import { onMount } from "svelte";
    import { signOut } from "@auth/sveltekit/client";

    const changePwLink: string = "https://sso.fjla.uk/realms/FJLA.net/account/account-security/signing-in"

    onMount(async() => {
        await signOut();
        window.location.href = changePwLink;
    })
</script>

<p>Redirecting, please wait...</p>
<p>If the page does not reload <a href={changePwLink}>click here</a>.</p>

<style>
    p {
        text-align: center;
        margin: auto;
    }
</style>