@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 +33 -10
- package/dist/runtimes/index.d.ts +0 -1
- package/dist/runtimes/index.d.ts.map +1 -1
- package/dist/runtimes/index.js +1 -1
- package/package.json +1 -5
- package/dist/chunk-OMD2JMMI.js +0 -2
- package/dist/chunk-OMD2JMMI.js.map +0 -1
- package/dist/runtimes/cloudflare/index.d.ts +0 -7
- package/dist/runtimes/cloudflare/index.d.ts.map +0 -1
- package/dist/runtimes/cloudflare/index.js +0 -2
- package/dist/runtimes/cloudflare/index.js.map +0 -1
package/README.md
CHANGED
|
@@ -1,19 +1,42 @@
|
|
|
1
1
|
<h1 align="center">gau</h1>
|
|
2
2
|
<p align="center">
|
|
3
|
-
|
|
3
|
+
/ɡɔː/ <br>
|
|
4
|
+
<strong>good auth</strong>
|
|
4
5
|
</p>
|
|
5
6
|
|
|
6
|
-
|
|
7
|
-
|
|
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
|
-
|
|
30
|
+
`gau` is everything-agnostic, but it's missing a ton of integrations.
|
|
31
|
+
If you want to add a new...
|
|
10
32
|
|
|
11
|
-
|
|
33
|
+
- OAuth provider
|
|
34
|
+
- Database adapter
|
|
35
|
+
- Framework integration
|
|
36
|
+
- Platform integration
|
|
12
37
|
|
|
13
|
-
|
|
38
|
+
... PRs are welcome!
|
|
14
39
|
|
|
15
|
-
|
|
16
|
-
npm i @rttnd/gau
|
|
17
|
-
```
|
|
40
|
+
## license
|
|
18
41
|
|
|
19
|
-
|
|
42
|
+
MIT
|
package/dist/runtimes/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../runtimes/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAA;AACrB,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../runtimes/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAA;AACrB,cAAc,SAAS,CAAA"}
|
package/dist/runtimes/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as
|
|
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.
|
|
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"
|
package/dist/chunk-OMD2JMMI.js
DELETED
|
@@ -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 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|