
Product
Socket for Asana Is Now Available
Create and manage Asana tasks directly from Socket alerts, with manual task creation, automated ticketing rules, and two-way sync.
@authon/svelte
Advanced tools
Svelte SDK for Authon — stores, actions, and components.
npm install @authon/svelte
# or
pnpm add @authon/svelte
Requires svelte >= 4.0.0.
// src/lib/authon.ts
import { initAuthon } from '@authon/svelte';
export const authon = initAuthon({
publishableKey: 'pk_live_...',
});
<script>
import { user, isSignedIn, isLoading } from '@authon/svelte';
import { openSignIn, signOut } from '@authon/svelte';
</script>
{#if $isLoading}
<p>Loading...</p>
{:else if $isSignedIn}
<p>Welcome, {$user?.displayName}</p>
<button on:click={signOut}>Sign Out</button>
{:else}
<button on:click={openSignIn}>Sign In</button>
{/if}
<script>
import { SignedIn, SignedOut, UserButton } from '@authon/svelte';
</script>
<SignedIn>
<UserButton />
</SignedIn>
<SignedOut>
<button on:click={openSignIn}>Sign In</button>
</SignedOut>
| Store | Type | Description |
|---|---|---|
user | Readable<AuthonUser | null> | Current user |
isSignedIn | Readable<boolean> | Whether the user is signed in |
isLoading | Readable<boolean> | Whether auth state is loading |
| Function | Returns | Description |
|---|---|---|
openSignIn() | Promise<void> | Open sign-in modal |
openSignUp() | Promise<void> | Open sign-up modal |
signOut() | Promise<void> | Sign out |
getToken() | string | null | Get current access token |
| Component | Description |
|---|---|
<SignedIn> | Renders slot only when signed in |
<SignedOut> | Renders slot only when signed out |
<UserButton> | Avatar dropdown with sign-out |
FAQs
Authon Svelte SDK — stores and components
We found that @authon/svelte demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Product
Create and manage Asana tasks directly from Socket alerts, with manual task creation, automated ticketing rules, and two-way sync.

Security News
Open VSX has removed three extension IDs from its malicious-extension list as the legitimate publishers they impersonated move to claim the names for themselves.

Product
Socket’s PHP and Composer support is now in Beta for all customers, with PHP reachability analysis generally available.