@rttnd/gau 0.2.5 → 0.2.6

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
@@ -1,19 +1,42 @@
1
1
  <h1 align="center">gau</h1>
2
2
  <p align="center">
3
- good auth
3
+ /ɡɔː/ <br>
4
+ <strong>good auth</strong>
4
5
  </p>
5
6
 
6
- [![NPM Version](https://img.shields.io/npm/v/%40rttnd%2Fgau?color=red)](https://www.npmjs.com/package/%40rttnd%2Fgau)
7
- [![JSR Version](https://img.shields.io/jsr/v/%40rttnd/gau?color=yellow)](https://jsr.io/%40rttnd/gau)
7
+ <p align="center">
8
+ <a href="https://www.npmjs.com/package/@rttnd/gau"><img src="https://img.shields.io/npm/v/%40rttnd%2Fgau?color=red" alt="NPM Version"></a>
9
+ <a href="https://jsr.io/@rttnd/gau"><img src="https://img.shields.io/jsr/v/%40rttnd/gau?color=yellow" alt="JSR Version"></a>
10
+ </p>
11
+
12
+ **Read the docs**: [gau.rettend.me](https://gau.rettend.me)
13
+
14
+ - **Flexible** - Small and self-hostable, works with backend-only, full-stack, and native apps, and on different hosts
15
+ - **Framework agnostic** - Core is framework-free and uses Web Crypto, with helpers for frameworks and runtimes
16
+ - **Runtime agnostic** - Runs on Bun, Node, Deno, Cloudflare Workers, and even Tauri
17
+ - **Database agnostic** - Can support any database via adapters
18
+
19
+ ## examples
20
+
21
+ Check out the [`packages`](https://github.com/Rettend/gau/tree/main/packages) folder in this repo for complete working apps:
22
+
23
+ - `sveltekit`: SvelteKit + Turso
24
+ - `sveltekit-tauri`: SvelteKit + Turso + Tauri (desktop)
25
+ - `sveltekit-mobile`: SvelteKit + Turso + Tauri (mobile and desktop)
26
+ - `solidstart`: SolidStart + Turso
27
+
28
+ ## contributing
8
29
 
9
- Check out the [docs](https://gau.rettend.me) or continue reading below.
30
+ `gau` is everything-agnostic, but it's missing a ton of integrations.
31
+ If you want to add a new...
10
32
 
11
- ## get started
33
+ - OAuth provider
34
+ - Database adapter
35
+ - Framework integration
36
+ - Platform integration
12
37
 
13
- ### install
38
+ ... PRs are welcome!
14
39
 
15
- ```bash
16
- npm i @rttnd/gau
17
- ```
40
+ ## license
18
41
 
19
- TODO
42
+ MIT
@@ -1,4 +1,3 @@
1
1
  export * from './bun';
2
- export * from './cloudflare';
3
2
  export * from './tauri';
4
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../runtimes/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAA;AACrB,cAAc,cAAc,CAAA;AAC5B,cAAc,SAAS,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../runtimes/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAA;AACrB,cAAc,SAAS,CAAA"}
@@ -1,2 +1,2 @@
1
- import{a as e,b as f,c as m,d as p,e as t,f as x,g as a}from"../chunk-5A3NMHJO.js";import{a as r}from"../chunk-OMD2JMMI.js";import"../chunk-JXRUYABI.js";import{a as o}from"../chunk-LWBWVQD2.js";export{o as _bunRuntimePlaceholder,a as clearSessionToken,r as cloudflareAuth,x as getSessionToken,p as handleTauriDeepLink,e as isTauri,m as setupTauriListener,f as signInWithTauri,t as storeSessionToken};
1
+ import{a as r,b as e,c as f,d as m,e as p,f as t,g as x}from"../chunk-5A3NMHJO.js";import{a as o}from"../chunk-LWBWVQD2.js";export{o as _bunRuntimePlaceholder,x as clearSessionToken,t as getSessionToken,m as handleTauriDeepLink,r as isTauri,f as setupTauriListener,e as signInWithTauri,p as storeSessionToken};
2
2
  //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@rttnd/gau",
3
3
  "type": "module",
4
- "version": "0.2.5",
4
+ "version": "0.2.6",
5
5
  "packageManager": "bun@1.2.19",
6
6
  "description": "gau is a delightful auth library",
7
7
  "license": "MIT",
@@ -64,10 +64,6 @@
64
64
  "types": "./dist/runtimes/bun/index.d.ts",
65
65
  "import": "./dist/runtimes/bun/index.js"
66
66
  },
67
- "./runtimes/cloudflare": {
68
- "types": "./dist/runtimes/cloudflare/index.d.ts",
69
- "import": "./dist/runtimes/cloudflare/index.js"
70
- },
71
67
  "./runtimes/tauri": {
72
68
  "types": "./dist/runtimes/tauri/index.d.ts",
73
69
  "import": "./dist/runtimes/tauri/index.js"
@@ -1,2 +0,0 @@
1
- import{k as t}from"./chunk-JXRUYABI.js";function o(r){return t({...r,trustHosts:"all"})}export{o as a};
2
- //# sourceMappingURL=chunk-OMD2JMMI.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../runtimes/cloudflare/index.ts"],"sourcesContent":["import type { CreateAuthOptions } from '../../core'\r\nimport { createAuth } from '../../core'\r\n\r\n/**\r\n * Creates an auth instance configured for Cloudflare Workers,\r\n * automatically trusting all hosts since Workers handle proxies securely.\r\n */\r\nexport function cloudflareAuth(options: CreateAuthOptions) {\r\n return createAuth({\r\n ...options,\r\n trustHosts: 'all',\r\n })\r\n}\r\n"],"mappings":"wCAOO,SAASA,EAAeC,EAA4B,CACzD,OAAOC,EAAW,CAChB,GAAGD,EACH,WAAY,KACd,CAAC,CACH","names":["cloudflareAuth","options","createAuth"]}
@@ -1,7 +0,0 @@
1
- import type { CreateAuthOptions } from '../../core';
2
- /**
3
- * Creates an auth instance configured for Cloudflare Workers,
4
- * automatically trusting all hosts since Workers handle proxies securely.
5
- */
6
- export declare function cloudflareAuth(options: CreateAuthOptions): import("../..").Auth;
7
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../runtimes/cloudflare/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AAGnD;;;GAGG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,iBAAiB,wBAKxD"}
@@ -1,2 +0,0 @@
1
- import{a}from"../../chunk-OMD2JMMI.js";import"../../chunk-JXRUYABI.js";export{a as cloudflareAuth};
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}