@rebasepro/types 0.29.3 → 0.30.1
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.
|
@@ -278,6 +278,12 @@ export interface AuthAdapterCapabilities {
|
|
|
278
278
|
* that has never heard of the flow means.
|
|
279
279
|
*/
|
|
280
280
|
emailOtp?: boolean;
|
|
281
|
+
/**
|
|
282
|
+
* Supports device sign-in (`POST /auth/device`): a terminal shows a code
|
|
283
|
+
* and a link, and the person approves it in a browser where they are
|
|
284
|
+
* signed in. Optional, as `emailOtp` is; absent reads as "no".
|
|
285
|
+
*/
|
|
286
|
+
deviceLogin?: boolean;
|
|
281
287
|
/** Whether `POST /auth/anonymous` will mint a credential-less session. */
|
|
282
288
|
anonymousLogin: boolean;
|
|
283
289
|
/** List of enabled OAuth provider IDs (e.g. `["google", "github"]`). */
|
|
@@ -512,7 +518,7 @@ export interface TransformAuthResponseContext {
|
|
|
512
518
|
/** The authenticated user's ID. */
|
|
513
519
|
uid: string;
|
|
514
520
|
/** The auth method that triggered this response. */
|
|
515
|
-
method: "login" | "register" | "oauth" | "refresh" | "anonymous" | "magic-link" | "otp" | "mfa";
|
|
521
|
+
method: "login" | "register" | "oauth" | "refresh" | "anonymous" | "magic-link" | "otp" | "mfa" | "device";
|
|
516
522
|
/** The raw HTTP request (for reading headers, IP, etc.). */
|
|
517
523
|
request: Request;
|
|
518
524
|
}
|