0.1.0 • Published 3 months ago

@tuentyfaiv/svelte-auth v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 months ago

Svelte Auth

npm install @tuentyfaiv/svelte-auth

Examples

Instance context

<!-- +layout.svelte -->
<script lang="ts">
  import { authContext } from "@tuentyfaiv/svelte-auth";
  // configure auth routes and redirection url

  authContext(["/signin", "/forgot"], "/");
</script>

Protect page

<!-- +page.svelte -->
<script lang="ts">
  import { Auth } from "@tuentyfaiv/svelte-auth";
</script>

<Auth>
  <!-- ...content -->
</Auth>
0.1.0

3 months ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago