limen-auth 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -9,6 +9,8 @@
9
9
  <a href="https://github.com/thecodearcher/limen"><img src="https://img.shields.io/github/stars/thecodearcher/limen?style=flat&colorA=000000&colorB=000000&logo=github" alt="GitHub stars" /></a>
10
10
  </p>
11
11
 
12
+ ## Limen Auth
13
+
12
14
  Official TypeScript client SDK for **[Limen](https://github.com/thecodearcher/limen)** — a modern, composable authentication library for Go. Framework-agnostic core with first-class **React, Vue, Svelte, and Solid** adapters.
13
15
 
14
16
  ## Install
@@ -32,7 +34,7 @@ export const auth = createAuthClient({
32
34
  // own, stays in sync across tabs, and updates whenever you sign in or out.
33
35
  auth.$session.subscribe(({ data, isPending }) => {
34
36
  if (isPending) return;
35
- console.log(data ? `Signed in as ${data.user.email}` : "Signed out");
37
+ console.log(data ? `Signed in as ${data.user.email}` : "Signed out!");
36
38
  });
37
39
 
38
40
  // Mutations update `$session` automatically — no manual refetch.
package/dist/errors.d.mts CHANGED
@@ -4,8 +4,7 @@ type LimenErrorCode = "unauthorized" | "forbidden" | "not_found" | "rate_limited
4
4
  declare function deriveErrorCode(status: number): LimenErrorCode;
5
5
  /**
6
6
  * The single error type every SDK call throws on non-2xx. Carries the raw
7
- * server message, the HTTP status, and a derived typed code. Subclass-free so
8
- * `instanceof LimenError` is the only check consumers need.
7
+ * server message, the HTTP status, and a derived typed code.
9
8
  */
10
9
  declare class LimenError extends Error {
11
10
  readonly name = "LimenError";
package/dist/errors.mjs CHANGED
@@ -12,8 +12,7 @@ function deriveErrorCode(status) {
12
12
  }
13
13
  /**
14
14
  * The single error type every SDK call throws on non-2xx. Carries the raw
15
- * server message, the HTTP status, and a derived typed code. Subclass-free so
16
- * `instanceof LimenError` is the only check consumers need.
15
+ * server message, the HTTP status, and a derived typed code.
17
16
  */
18
17
  var LimenError = class extends Error {
19
18
  name = "LimenError";
package/dist/package.mjs CHANGED
@@ -1,4 +1,4 @@
1
1
  //#region package.json
2
- var version = "0.0.1";
2
+ var version = "0.0.2";
3
3
  //#endregion
4
4
  export { version };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "limen-auth",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "description": "Official TypeScript SDK for Limen, a composable Go auth library. Framework-agnostic core with React, Vue, Svelte, and Solid adapters.",
5
5
  "keywords": [
6
6
  "limen",