limen-auth

Official TypeScript SDK for Limen, a composable Go auth library. Framework-agnostic core with React, Vue, Svelte, and Solid adapters.
4,895 554
Install
npm install limen-auth
Latest Version:0.2.1
Vue:3
License:MIT
Last Updated:Sep 25, 2026
Links: GitHub  ·  npm
Maintainer: brianiyoha

Limen Auth

Official TypeScript client SDK for Limen — a modern, composable authentication library for Go. Framework-agnostic core with first-class React, Vue, Svelte, and Solid adapters.

Install

npm install limen-auth

Quick start

import { createAuthClient } from "limen-auth";
import { credentialPasswordPlugin } from "limen-auth/plugins/credential";

export const auth = createAuthClient({
  baseURL: "http://localhost:8080", // your Limen server origin
  plugins: [credentialPasswordPlugin()],
});

// `auth.$session` is a reactive store for the current user — it loads on its
// own, stays in sync across tabs, and updates whenever you sign in or out.
auth.$session.subscribe(({ data, isPending }) => {
  if (isPending) return;
  console.log(data ? `Signed in as ${data.user.email}` : "Signed out!");
});

// Mutations update `$session` automatically — no manual refetch.
await auth.signIn.credential({ credential: "ada@example.com", password: "secret" });
await auth.signout();

Using a framework? limen-auth/react, /vue, /svelte, and /solid give you a useSession() hook over the same store — plus one hook per store any plugin registers, so the organization plugin's $activeOrganization becomes useActiveOrganization().

Documentation

Full guides, framework adapters (React, Vue, Svelte, Solid), the plugin catalog, and the complete API reference live at limenauth.dev.

Related Packages

vue-auth

Vue plugin for easily managing auth state

1,200 15
@pinooxhq/auth

Auth for Pinoox themes — zero configuration. Token/session, authorized HTTP, and...

1,021 2
@musikhood-dev/auth-client

Auth client for browser apps. Cookies + automatic refresh + React and Vue 3 adap...

3,326 0

Version History

Version Released License
0.2.1 MIT
0.2.0 MIT
0.1.1 MIT
0.1.0 MIT
0.0.4 MIT
Pre-releases (1)
Version Released License
0.0.2-beta.0 MIT