npm install @tuentyfaiv/svelte-auth
<!-- +layout.svelte -->
<script lang="ts">
import { authContext } from "@tuentyfaiv/svelte-auth";
// configure auth routes and redirection url
authContext(["/signin", "/forgot"], "/");
</script>
<!-- +page.svelte -->
<script lang="ts">
import { Auth } from "@tuentyfaiv/svelte-auth";
</script>
<Auth>
<!-- ...content -->
</Auth>