@quatrain/auth-supabase 1.1.15 → 1.1.16
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 +28 -0
- package/lib/SupabaseAuthAdapter.js +1 -0
- package/package.json +2 -2
package/README.md
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# @quatrain/auth-supabase
|
|
2
|
+
|
|
3
|
+
An authentication adapter for Supabase Auth. This package provides a seamless integration between Quatrain and Supabase's GoTrue-based authentication service.
|
|
4
|
+
|
|
5
|
+
## Features
|
|
6
|
+
|
|
7
|
+
- Implements the `@quatrain/auth` abstract adapter.
|
|
8
|
+
- Works with both Supabase SaaS and self-hosted instances.
|
|
9
|
+
- Leverages Supabase's Row-Level Security (RLS) for data access.
|
|
10
|
+
- Uses the `@supabase/supabase-js` library.
|
|
11
|
+
|
|
12
|
+
## Installation
|
|
13
|
+
|
|
14
|
+
```bash
|
|
15
|
+
npm install @quatrain/auth-supabase @supabase/supabase-js
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## Usage
|
|
19
|
+
|
|
20
|
+
```typescript
|
|
21
|
+
import { Auth } from '@quatrain/auth'
|
|
22
|
+
import { SupabaseAuthAdapter } from '@quatrain/auth-supabase'
|
|
23
|
+
|
|
24
|
+
const adapter = new SupabaseAuthAdapter({
|
|
25
|
+
config: { url: '...', anonKey: '...' },
|
|
26
|
+
})
|
|
27
|
+
Auth.addAdapter(adapter, 'default', true)
|
|
28
|
+
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quatrain/auth-supabase",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.16",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"author": "Quatrain Développement SAS <developers@quatrain.com>",
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"@quatrain/auth": "^1.1.17",
|
|
14
|
-
"@supabase/supabase-js": "^2.
|
|
14
|
+
"@supabase/supabase-js": "^2.57.2",
|
|
15
15
|
"node-fetch-native": "^1.6.4"
|
|
16
16
|
},
|
|
17
17
|
"devDependencies": {
|