@supabase/lite 0.7.0 → 0.7.1-next.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/LIMITATIONS.md +4 -0
- package/STATUS.md +5 -3
- package/dist/cli/index.js +93 -90
- package/dist/cli/lib.js +10 -10
- package/dist/index.d.ts +41 -1
- package/dist/index.js +112 -43
- package/dist/vite/index.d.ts +41 -1
- package/package.json +1 -1
package/LIMITATIONS.md
CHANGED
|
@@ -23,6 +23,10 @@ Anchors below point to the corresponding STATUS.md section. If a limitation here
|
|
|
23
23
|
- Range operators (`rangeGt`, …) and quantified comparisons (`eq(any)`, …) → not implemented on SQLite. See [Range Operators](https://github.com/supabase-community/lite/blob/HEAD/STATUS.md#range-operators) and [Quantified Comparison Operators](https://github.com/supabase-community/lite/blob/HEAD/STATUS.md#quantified-comparison-operators).
|
|
24
24
|
- `schema()` → SQLite is single-schema. See [Control & Specialized](https://github.com/supabase-community/lite/blob/HEAD/STATUS.md#control--specialized).
|
|
25
25
|
|
|
26
|
+
## Auth (shipped with caveats)
|
|
27
|
+
|
|
28
|
+
- `double_confirm_changes = true` (secure email change) is spec-compatible but **not** GoTrue's full two-mailbox flow: it finalizes from the current-email confirmation only, so it does not require the new mailbox to also confirm. It still prevents a session thief from changing the email using only a mailbox they control. See [Auth email delivery & templates](https://github.com/supabase-community/lite/blob/HEAD/docs/src/content/docs/auth/email.mdx).
|
|
29
|
+
|
|
26
30
|
## Auth (planned, not yet shipped)
|
|
27
31
|
|
|
28
32
|
- OAuth, anonymous sign-in, identity linking, admin API, MFA → planned. See [Auth API: Planned](https://github.com/supabase-community/lite/blob/HEAD/STATUS.md#-planned).
|
package/STATUS.md
CHANGED
|
@@ -495,7 +495,7 @@ Backend implementation in `app/src/auth/`. GoTrue-compatible HTTP endpoints at `
|
|
|
495
495
|
| `signUp()` | `POST /signup` | Email/password, optional metadata, email confirmation |
|
|
496
496
|
| `signInWithPassword()` | `POST /token?grant_type=password` | JWT + refresh token |
|
|
497
497
|
| `signInWithOtp()` | `POST /otp` | Magic link / OTP via email |
|
|
498
|
-
| `verifyOtp()` | `POST /verify`
|
|
498
|
+
| `verifyOtp()` | `POST /verify`, `GET /verify` | signup, magiclink, recovery, email_change, reauthentication. Numeric code + `token_hash` both verify against the DB (durable on Workers); `otp_expiry`/`otp_length` honored. `GET /verify` 303-redirects to `redirect_to` (allow-list checked) |
|
|
499
499
|
| `refreshSession()` | `POST /token?grant_type=refresh_token` | Token rotation, immediate reuse compatibility, session expiry checks |
|
|
500
500
|
| `signOut()` | `POST /logout` | Scopes: local, global, others |
|
|
501
501
|
| `getUser()` | `GET /user` | JWT-authenticated |
|
|
@@ -510,8 +510,10 @@ Supporting infrastructure:
|
|
|
510
510
|
- Password hashing (bcrypt-compatible)
|
|
511
511
|
- Refresh token rotation with revocation, reuse, and parent-chain tracking
|
|
512
512
|
- Session management (create, validate, refresh, expire, delete)
|
|
513
|
-
- Configurable email signup, confirmations, and secure/insecure email change
|
|
514
|
-
- Mailer integration (confirmation, recovery, magic link, email change)
|
|
513
|
+
- Configurable email signup, confirmations, and secure/insecure email change. Note: `double_confirm_changes=true` is spec-compatible (finalizes from the current-email confirmation, delivered to the current address) but does not implement GoTrue's full two-mailbox confirmation. See [LIMITATIONS.md](https://github.com/supabase-community/lite/blob/HEAD/LIMITATIONS.md#auth-shipped-with-caveats).
|
|
514
|
+
- Mailer integration (confirmation, recovery, magic link, email change, reauthentication)
|
|
515
|
+
- Default Supabase-styled email templates with `site_url`-based verify links; per-type overrides via `auth.email.template.<type>.{subject,content_path}` (GoTrue `{{ .ConfirmationURL }}` etc. variables)
|
|
516
|
+
- Email drivers `Resend` / `AWS SES` / `Sendmail` (injected via `options.drivers.email`; default `NoopEmailDriver` logs only)
|
|
515
517
|
|
|
516
518
|
### 🔄 Planned
|
|
517
519
|
|