@rebasepro/server 0.19.1 → 0.19.2-canary.g09316f6
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/dist/{GCSStorageController-ZXPoNqW3.js → GCSStorageController-CLIJXwGS.js} +2 -2
- package/dist/{GCSStorageController-ZXPoNqW3.js.map → GCSStorageController-CLIJXwGS.js.map} +1 -1
- package/dist/{S3StorageController-5pAXyv31.js → S3StorageController-Dcuf8lMA.js} +2 -2
- package/dist/{S3StorageController-5pAXyv31.js.map → S3StorageController-Dcuf8lMA.js.map} +1 -1
- package/dist/api/errors.d.ts +6 -1
- package/dist/api/rest/api-generator.d.ts +80 -0
- package/dist/api/rest/batch.d.ts +71 -0
- package/dist/api/rest/conflict-target.d.ts +20 -0
- package/dist/api/rest/etag.d.ts +55 -0
- package/dist/api/rest/field-access-query.d.ts +66 -0
- package/dist/api/rest/field-ops.d.ts +86 -0
- package/dist/api/rest/query-parser.d.ts +16 -2
- package/dist/api/rest/soft-delete-params.d.ts +37 -0
- package/dist/api/rest/write-validation.d.ts +51 -8
- package/dist/api/types.d.ts +28 -3
- package/dist/{ast-schema-editor-CNgFJ3NF.js → ast-schema-editor-C6mDz0XN.js} +2 -2
- package/dist/{ast-schema-editor-CNgFJ3NF.js.map → ast-schema-editor-C6mDz0XN.js.map} +1 -1
- package/dist/auth/jwt.d.ts +17 -0
- package/dist/auth/rls-scope.d.ts +1 -0
- package/dist/{auth-BRiOuyq8.js → auth-DJsLXsCR.js} +61 -60
- package/dist/auth-DJsLXsCR.js.map +1 -0
- package/dist/{backup-C8P6Cl3G.js → backup-DGu0v9Ku.js} +2 -2
- package/dist/{backup-C8P6Cl3G.js.map → backup-DGu0v9Ku.js.map} +1 -1
- package/dist/boot/bundle.d.ts +12 -3
- package/dist/boot/driver.d.ts +11 -4
- package/dist/boot/env.d.ts +2 -2
- package/dist/{contract-routes-CusnEB5h.js → contract-routes-eLxV0le1.js} +2 -2
- package/dist/{contract-routes-CusnEB5h.js.map → contract-routes-eLxV0le1.js.map} +1 -1
- package/dist/{cron-loader-DnmIePn_.js → cron-loader-CQjvjpEw.js} +2 -2
- package/dist/{cron-loader-DnmIePn_.js.map → cron-loader-CQjvjpEw.js.map} +1 -1
- package/dist/{cron-routes-D3x2ydMa.js → cron-routes-Bfwni8Zg.js} +3 -3
- package/dist/{cron-routes-D3x2ydMa.js.map → cron-routes-Bfwni8Zg.js.map} +1 -1
- package/dist/{cron-store-CCQXwgVL.js → cron-store-Bsiw4Q6u.js} +3 -3
- package/dist/{cron-store-CCQXwgVL.js.map → cron-store-Bsiw4Q6u.js.map} +1 -1
- package/dist/{errors-HjfaPlvY.js → errors-DMImyqyR.js} +8 -3
- package/dist/errors-DMImyqyR.js.map +1 -0
- package/dist/{function-routes-gQ0EShVG.js → function-routes-C4nB2h0z.js} +2 -2
- package/dist/{function-routes-gQ0EShVG.js.map → function-routes-C4nB2h0z.js.map} +1 -1
- package/dist/functions/index.js +7 -2
- package/dist/functions/index.js.map +1 -1
- package/dist/{history-recorder-B1FwXx9J.js → history-recorder-r5_IzSHK.js} +2 -2
- package/dist/{history-recorder-B1FwXx9J.js.map → history-recorder-r5_IzSHK.js.map} +1 -1
- package/dist/{history-store-LHXaQywp.js → history-store-D4RVK-uZ.js} +2 -2
- package/dist/{history-store-LHXaQywp.js.map → history-store-D4RVK-uZ.js.map} +1 -1
- package/dist/index.d.ts +5 -0
- package/dist/index.es.js +2429 -7303
- package/dist/index.es.js.map +1 -1
- package/dist/{jobs-DkkD9mPV.js → jobs-CW5lm_Ix.js} +3 -3
- package/dist/{jobs-DkkD9mPV.js.map → jobs-CW5lm_Ix.js.map} +1 -1
- package/dist/{jwt-DkhXwMzR.js → jwt-DATvkKB_.js} +39 -3
- package/dist/{jwt-DkhXwMzR.js.map → jwt-DATvkKB_.js.map} +1 -1
- package/dist/{keys-g8lbVC_o.js → keys-Qfc4XieN.js} +2 -2
- package/dist/{keys-g8lbVC_o.js.map → keys-Qfc4XieN.js.map} +1 -1
- package/dist/{logs-routes-CbsTpozn.js → logs-routes-DnJINsMu.js} +2 -2
- package/dist/{logs-routes-CbsTpozn.js.map → logs-routes-DnJINsMu.js.map} +1 -1
- package/dist/{openapi-generator-BIBbO1Tq.js → openapi-generator-DGyLbISS.js} +374 -48
- package/dist/openapi-generator-DGyLbISS.js.map +1 -0
- package/dist/{query-parser-C68Q9EX4.js → query-parser-BQiPZrM-.js} +257 -17
- package/dist/query-parser-BQiPZrM-.js.map +1 -0
- package/dist/{request-timeout-DESvlfrS.js → request-timeout-BR-OBwES.js} +2 -2
- package/dist/{request-timeout-DESvlfrS.js.map → request-timeout-BR-OBwES.js.map} +1 -1
- package/dist/{schema-editor-routes-CcZKh50q.js → schema-editor-routes-C3TLZqAC.js} +13 -13
- package/dist/{schema-editor-routes-CcZKh50q.js.map → schema-editor-routes-C3TLZqAC.js.map} +1 -1
- package/dist/{src-DHK4fHkw.js → src-Br6ARbs6.js} +26 -2
- package/dist/src-Br6ARbs6.js.map +1 -0
- package/dist/{src-Dq-I3Ybx.js → src-DqZ9YiGA.js} +1387 -94
- package/dist/src-DqZ9YiGA.js.map +1 -0
- package/dist/storage/index.d.ts +2 -0
- package/dist/storage/property-limits.d.ts +77 -0
- package/dist/storage/routes.d.ts +13 -0
- package/dist/storage/tus-handler.d.ts +22 -1
- package/package.json +7 -6
- package/dist/auth-BRiOuyq8.js.map +0 -1
- package/dist/errors-HjfaPlvY.js.map +0 -1
- package/dist/openapi-generator-BIBbO1Tq.js.map +0 -1
- package/dist/query-parser-C68Q9EX4.js.map +0 -1
- package/dist/schemas-C3234HWE.js +0 -6827
- package/dist/schemas-C3234HWE.js.map +0 -1
- package/dist/src-DHK4fHkw.js.map +0 -1
- package/dist/src-Dq-I3Ybx.js.map +0 -1
|
@@ -3,23 +3,23 @@ import __rebaseProcess from "process";
|
|
|
3
3
|
globalThis.process ??= __rebaseProcess;
|
|
4
4
|
__rebaseCreateRequire(import.meta.url);
|
|
5
5
|
import { i as __toESM, n as __exportAll } from "./rolldown-runtime-dW7B1o5h.js";
|
|
6
|
-
import {
|
|
7
|
-
import "./src-
|
|
6
|
+
import { et as ANONYMOUS_USER_ID, tt as isAnonymousUid } from "./src-DqZ9YiGA.js";
|
|
7
|
+
import "./src-Br6ARbs6.js";
|
|
8
8
|
import { n as createDdlBootstrapper, o as isSQLAdmin } from "./ddl-bootstrap-CfNvxMuK.js";
|
|
9
9
|
import { t as revokeInternalTableSql } from "./internal-tables-DYVcFFSv.js";
|
|
10
10
|
import { r as logger } from "./logger-DO2PZc4i.js";
|
|
11
|
-
import { n as errorHandler, t as ApiError } from "./errors-
|
|
12
|
-
import { a as resolveListLimitParam } from "./query-parser-
|
|
13
|
-
import { S as sha256Hex, _ as verifyMfaPendingToken, a as generateMfaPendingToken, b as constantTimeEqual, c as getJwks, d as hasAsymmetricSigningKey, f as hashRefreshToken, g as verifyDownloadToken, h as verifyAccessToken, i as generateDownloadToken, l as getRefreshTokenExpiry, n as configureJwt, o as generateRefreshToken, p as isJwtConfigured, r as generateAccessToken, s as getAccessTokenExpiry, t as MAX_COOKIE_AGE_MS, u as getRefreshTokenTtlMs, x as randomInt$1, y as require_jsonwebtoken } from "./jwt-
|
|
11
|
+
import { n as errorHandler, t as ApiError } from "./errors-DMImyqyR.js";
|
|
12
|
+
import { a as resolveListLimitParam } from "./query-parser-BQiPZrM-.js";
|
|
13
|
+
import { S as sha256Hex, _ as verifyMfaPendingToken, a as generateMfaPendingToken, b as constantTimeEqual, c as getJwks, d as hasAsymmetricSigningKey, f as hashRefreshToken, g as verifyDownloadToken, h as verifyAccessToken, i as generateDownloadToken, l as getRefreshTokenExpiry, n as configureJwt, o as generateRefreshToken, p as isJwtConfigured, r as generateAccessToken, s as getAccessTokenExpiry, t as MAX_COOKIE_AGE_MS, u as getRefreshTokenTtlMs, x as randomInt$1, y as require_jsonwebtoken } from "./jwt-DATvkKB_.js";
|
|
14
14
|
import { n as hasAdministrativeRole, r as isAdministrativeRole, t as ADMINISTRATIVE_ROLES } from "./admin-roles-vYdp_Pil.js";
|
|
15
|
-
import { c as tryCanonicalStorageKey, i as canonicalStorageId } from "./keys-
|
|
16
|
-
import { Rn as string, Tn as object } from "./schemas-C3234HWE.js";
|
|
15
|
+
import { c as tryCanonicalStorageKey, i as canonicalStorageId } from "./keys-Qfc4XieN.js";
|
|
17
16
|
import { createHash, randomBytes, randomInt } from "node:crypto";
|
|
18
17
|
import { Hono } from "hono";
|
|
19
18
|
import { promisify } from "util";
|
|
20
19
|
import { createCipheriv, createDecipheriv, createHash as createHash$1, createHmac, createPublicKey, randomBytes as randomBytes$1, randomUUID, scrypt, timingSafeEqual } from "crypto";
|
|
21
20
|
import { getConnInfo } from "@hono/node-server/conninfo";
|
|
22
21
|
import { createMiddleware } from "hono/factory";
|
|
22
|
+
import { z } from "zod";
|
|
23
23
|
//#region ../types/src/controllers/storage.ts
|
|
24
24
|
/**
|
|
25
25
|
* Path prefix that marks an object as **public**. Files stored under this
|
|
@@ -714,7 +714,8 @@ function createAuthMiddleware(options) {
|
|
|
714
714
|
const user = {
|
|
715
715
|
uid: payload.uid,
|
|
716
716
|
roles: payload.roles,
|
|
717
|
-
isAnonymous: payload.isAnonymous === true
|
|
717
|
+
isAnonymous: payload.isAnonymous === true,
|
|
718
|
+
claims: payload.claims
|
|
718
719
|
};
|
|
719
720
|
c.set("driver", await scopeDataDriver(driver, user));
|
|
720
721
|
} catch (error) {
|
|
@@ -3240,9 +3241,9 @@ function mountMfaRoutes(opts) {
|
|
|
3240
3241
|
const userCtx = c.get("user");
|
|
3241
3242
|
if (!userCtx) throw ApiError.unauthorized("Not authenticated");
|
|
3242
3243
|
await requireStepUpForFactorChange(userCtx);
|
|
3243
|
-
const verifySchema = object({
|
|
3244
|
-
factorId: string().min(1, "Factor ID is required"),
|
|
3245
|
-
code: string().length(6, "Code must be 6 digits")
|
|
3244
|
+
const verifySchema = z.object({
|
|
3245
|
+
factorId: z.string().min(1, "Factor ID is required"),
|
|
3246
|
+
code: z.string().length(6, "Code must be 6 digits")
|
|
3246
3247
|
});
|
|
3247
3248
|
const { factorId, code } = parseBody(verifySchema, await c.req.json());
|
|
3248
3249
|
const factor = await authRepo.getMfaFactorById(factorId);
|
|
@@ -3264,7 +3265,7 @@ function mountMfaRoutes(opts) {
|
|
|
3264
3265
|
router.post("/mfa/challenge", strictAuthLimiter, async (c) => {
|
|
3265
3266
|
const principal = await resolveStepUpPrincipal(c);
|
|
3266
3267
|
if (!principal) throw ApiError.unauthorized("Not authenticated");
|
|
3267
|
-
const challengeSchema = object({ factorId: string().min(1, "Factor ID is required") });
|
|
3268
|
+
const challengeSchema = z.object({ factorId: z.string().min(1, "Factor ID is required") });
|
|
3268
3269
|
const { factorId } = parseBody(challengeSchema, await c.req.json());
|
|
3269
3270
|
const factor = await authRepo.getMfaFactorById(factorId);
|
|
3270
3271
|
if (!factor || factor.uid !== principal.uid) throw ApiError.notFound("MFA factor not found");
|
|
@@ -3285,9 +3286,9 @@ function mountMfaRoutes(opts) {
|
|
|
3285
3286
|
router.post("/mfa/challenge/verify", strictAuthLimiter, mfaVerificationLimiter, async (c) => {
|
|
3286
3287
|
const principal = await resolveStepUpPrincipal(c);
|
|
3287
3288
|
if (!principal) throw ApiError.unauthorized("Not authenticated");
|
|
3288
|
-
const challengeVerifySchema = object({
|
|
3289
|
-
challengeId: string().min(1, "Challenge ID is required"),
|
|
3290
|
-
code: string().min(1, "Code is required")
|
|
3289
|
+
const challengeVerifySchema = z.object({
|
|
3290
|
+
challengeId: z.string().min(1, "Challenge ID is required"),
|
|
3291
|
+
code: z.string().min(1, "Code is required")
|
|
3291
3292
|
});
|
|
3292
3293
|
const { challengeId, code } = parseBody(challengeVerifySchema, await c.req.json());
|
|
3293
3294
|
const challenge = await authRepo.getMfaChallengeById(challengeId);
|
|
@@ -3365,7 +3366,7 @@ function mountMfaRoutes(opts) {
|
|
|
3365
3366
|
const userCtx = c.get("user");
|
|
3366
3367
|
if (!userCtx) throw ApiError.unauthorized("Not authenticated");
|
|
3367
3368
|
if (userCtx.aal !== "aal2") throw ApiError.forbidden("MFA verification required to unenroll. Please re-authenticate with your second factor.", "AAL2_REQUIRED");
|
|
3368
|
-
const unenrollSchema = object({ factorId: string().min(1, "Factor ID is required") });
|
|
3369
|
+
const unenrollSchema = z.object({ factorId: z.string().min(1, "Factor ID is required") });
|
|
3369
3370
|
const { factorId } = parseBody(unenrollSchema, await c.req.json());
|
|
3370
3371
|
const factor = await authRepo.getMfaFactorById(factorId);
|
|
3371
3372
|
if (!factor || factor.uid !== userCtx.uid) throw ApiError.notFound("MFA factor not found");
|
|
@@ -3518,16 +3519,16 @@ function mountSessionRoutes(opts) {
|
|
|
3518
3519
|
})) return;
|
|
3519
3520
|
throw ApiError.forbidden(config.disableSelfRegistration ? "Anonymous sign-in is disabled: disableSelfRegistration blocks it." : "Anonymous sign-in is disabled. Set `auth.allowAnonymous: true` to enable it.", "ANONYMOUS_AUTH_DISABLED");
|
|
3520
3521
|
}
|
|
3521
|
-
const logoutSchema = object({ refreshToken: string().optional() });
|
|
3522
|
-
const linkSchema = object({
|
|
3523
|
-
email: string().email("Invalid email address").max(255),
|
|
3524
|
-
password: string().min(1, "Password is required").max(128)
|
|
3522
|
+
const logoutSchema = z.object({ refreshToken: z.string().optional() });
|
|
3523
|
+
const linkSchema = z.object({
|
|
3524
|
+
email: z.string().email("Invalid email address").max(255),
|
|
3525
|
+
password: z.string().min(1, "Password is required").max(128)
|
|
3525
3526
|
});
|
|
3526
|
-
const updateProfileSchema = object({
|
|
3527
|
-
displayName: string().max(255).optional(),
|
|
3528
|
-
photoURL: string().url().max(2048).optional()
|
|
3527
|
+
const updateProfileSchema = z.object({
|
|
3528
|
+
displayName: z.string().max(255).optional(),
|
|
3529
|
+
photoURL: z.string().url().max(2048).optional()
|
|
3529
3530
|
});
|
|
3530
|
-
const findUserSchema = object({ email: string().email("Invalid email address").max(255) });
|
|
3531
|
+
const findUserSchema = z.object({ email: z.string().email("Invalid email address").max(255) });
|
|
3531
3532
|
/**
|
|
3532
3533
|
* POST /auth/logout
|
|
3533
3534
|
*/
|
|
@@ -3543,7 +3544,7 @@ function mountSessionRoutes(opts) {
|
|
|
3543
3544
|
clearRefreshCookie(c, config.cookieAuth);
|
|
3544
3545
|
const accessToken = extractBearerToken(c.req.header("authorization"));
|
|
3545
3546
|
if (ops.afterLogout && accessToken !== void 0) {
|
|
3546
|
-
const { verifyAccessToken } = await import("./jwt-
|
|
3547
|
+
const { verifyAccessToken } = await import("./jwt-DATvkKB_.js").then((n) => n.m);
|
|
3547
3548
|
const payload = await verifyAccessToken(accessToken);
|
|
3548
3549
|
if (payload) ops.afterLogout(payload.uid).catch((err) => {
|
|
3549
3550
|
logger.error("[AuthHooks] afterLogout error", { error: err instanceof Error ? err.message : err });
|
|
@@ -3741,8 +3742,8 @@ function getMagicLinkExpiry() {
|
|
|
3741
3742
|
function mountMagicLinkRoutes(deps) {
|
|
3742
3743
|
const { router, config, ops, parseBody, buildAuthResponse, createSessionAndTokens, applyTransformHook, captchaMiddleware } = deps;
|
|
3743
3744
|
const { authRepo, emailService, emailConfig } = config;
|
|
3744
|
-
const magicLinkSchema = object({ email: string().email("Invalid email address").max(255) });
|
|
3745
|
-
const verifyMagicLinkSchema = object({ token: string().min(1, "Token is required") });
|
|
3745
|
+
const magicLinkSchema = z.object({ email: z.string().email("Invalid email address").max(255) });
|
|
3746
|
+
const verifyMagicLinkSchema = z.object({ token: z.string().min(1, "Token is required") });
|
|
3746
3747
|
function isEmailConfigured() {
|
|
3747
3748
|
return !!(emailService && emailService.isConfigured());
|
|
3748
3749
|
}
|
|
@@ -3926,10 +3927,10 @@ var captureOtpEmail = async (c, next) => {
|
|
|
3926
3927
|
function mountOtpRoutes(deps) {
|
|
3927
3928
|
const { router, config, ops, parseBody, buildAuthResponse, createSessionAndTokens, applyTransformHook, captchaMiddleware } = deps;
|
|
3928
3929
|
const { authRepo, emailService, emailConfig } = config;
|
|
3929
|
-
const requestSchema = object({ email: string().email("Invalid email address").max(255) });
|
|
3930
|
-
const verifySchema = object({
|
|
3931
|
-
email: string().email("Invalid email address").max(255),
|
|
3932
|
-
code: string().regex(/^\d{6}$/, "A code is six digits")
|
|
3930
|
+
const requestSchema = z.object({ email: z.string().email("Invalid email address").max(255) });
|
|
3931
|
+
const verifySchema = z.object({
|
|
3932
|
+
email: z.string().email("Invalid email address").max(255),
|
|
3933
|
+
code: z.string().regex(/^\d{6}$/, "A code is six digits")
|
|
3933
3934
|
});
|
|
3934
3935
|
const isEmailConfigured = () => !!(emailService && emailService.isConfigured());
|
|
3935
3936
|
/**
|
|
@@ -4125,25 +4126,25 @@ function createAuthRoutes(config) {
|
|
|
4125
4126
|
return response;
|
|
4126
4127
|
}
|
|
4127
4128
|
}
|
|
4128
|
-
const registerSchema = object({
|
|
4129
|
-
email: string().email("Invalid email address").max(255),
|
|
4130
|
-
password: string().min(1, "Password is required").max(128),
|
|
4131
|
-
displayName: string().max(255).optional()
|
|
4129
|
+
const registerSchema = z.object({
|
|
4130
|
+
email: z.string().email("Invalid email address").max(255),
|
|
4131
|
+
password: z.string().min(1, "Password is required").max(128),
|
|
4132
|
+
displayName: z.string().max(255).optional()
|
|
4132
4133
|
});
|
|
4133
|
-
const loginSchema = object({
|
|
4134
|
-
email: string().email("Invalid email address").max(255),
|
|
4135
|
-
password: string().min(1, "Password is required").max(128)
|
|
4134
|
+
const loginSchema = z.object({
|
|
4135
|
+
email: z.string().email("Invalid email address").max(255),
|
|
4136
|
+
password: z.string().min(1, "Password is required").max(128)
|
|
4136
4137
|
});
|
|
4137
|
-
const forgotPasswordSchema = object({ email: string().email("Invalid email address").max(255) });
|
|
4138
|
-
const resetPasswordSchema = object({
|
|
4139
|
-
token: string().min(1, "Token is required"),
|
|
4140
|
-
password: string().min(1, "Password is required").max(128)
|
|
4138
|
+
const forgotPasswordSchema = z.object({ email: z.string().email("Invalid email address").max(255) });
|
|
4139
|
+
const resetPasswordSchema = z.object({
|
|
4140
|
+
token: z.string().min(1, "Token is required"),
|
|
4141
|
+
password: z.string().min(1, "Password is required").max(128)
|
|
4141
4142
|
});
|
|
4142
|
-
const changePasswordSchema = object({
|
|
4143
|
-
oldPassword: string().min(1, "Old password is required").max(128),
|
|
4144
|
-
newPassword: string().min(1, "New password is required").max(128)
|
|
4143
|
+
const changePasswordSchema = z.object({
|
|
4144
|
+
oldPassword: z.string().min(1, "Old password is required").max(128),
|
|
4145
|
+
newPassword: z.string().min(1, "New password is required").max(128)
|
|
4145
4146
|
});
|
|
4146
|
-
const refreshSchema = object({ refreshToken: string().min(1).optional() });
|
|
4147
|
+
const refreshSchema = z.object({ refreshToken: z.string().min(1).optional() });
|
|
4147
4148
|
/** Parse a Zod schema against the request body, throwing ApiError on failure */
|
|
4148
4149
|
function parseBody(schema, body) {
|
|
4149
4150
|
const result = schema.safeParse(body);
|
|
@@ -5416,10 +5417,10 @@ function createJwksRoutes() {
|
|
|
5416
5417
|
* providers that mandate PKCE (Twitter/X).
|
|
5417
5418
|
*/
|
|
5418
5419
|
function oauthCodeFlowSchema(opts = {}) {
|
|
5419
|
-
const verifier = opts.pkce === "required" ? string().min(1, "PKCE code verifier is required") : string().min(1).optional();
|
|
5420
|
-
return object({
|
|
5421
|
-
code: string().min(1, "Auth code is required"),
|
|
5422
|
-
redirectUri: string().url("Valid redirect URI is required"),
|
|
5420
|
+
const verifier = opts.pkce === "required" ? z.string().min(1, "PKCE code verifier is required") : z.string().min(1).optional();
|
|
5421
|
+
return z.object({
|
|
5422
|
+
code: z.string().min(1, "Auth code is required"),
|
|
5423
|
+
redirectUri: z.string().url("Valid redirect URI is required"),
|
|
5423
5424
|
codeVerifier: verifier
|
|
5424
5425
|
});
|
|
5425
5426
|
}
|
|
@@ -5537,12 +5538,12 @@ function createGoogleProvider(config) {
|
|
|
5537
5538
|
}
|
|
5538
5539
|
return {
|
|
5539
5540
|
id: "google",
|
|
5540
|
-
schema: object({
|
|
5541
|
-
idToken: string().min(1).optional(),
|
|
5542
|
-
accessToken: string().min(1).optional(),
|
|
5543
|
-
code: string().min(1).optional(),
|
|
5544
|
-
redirectUri: string().min(1).optional(),
|
|
5545
|
-
codeVerifier: string().min(1).optional()
|
|
5541
|
+
schema: z.object({
|
|
5542
|
+
idToken: z.string().min(1).optional(),
|
|
5543
|
+
accessToken: z.string().min(1).optional(),
|
|
5544
|
+
code: z.string().min(1).optional(),
|
|
5545
|
+
redirectUri: z.string().min(1).optional(),
|
|
5546
|
+
codeVerifier: z.string().min(1).optional()
|
|
5546
5547
|
}).refine((data) => data.idToken || data.accessToken || data.code && data.redirectUri, { message: "One of idToken, accessToken, or code+redirectUri is required" }),
|
|
5547
5548
|
verify: async (payload) => {
|
|
5548
5549
|
try {
|
|
@@ -5946,9 +5947,9 @@ function createAppleProvider(config) {
|
|
|
5946
5947
|
* that claim is absent simply by omitting the `email` scope from
|
|
5947
5948
|
* their own authorization request.
|
|
5948
5949
|
*/
|
|
5949
|
-
user: object({ name: object({
|
|
5950
|
-
firstName: string().optional(),
|
|
5951
|
-
lastName: string().optional()
|
|
5950
|
+
user: z.object({ name: z.object({
|
|
5951
|
+
firstName: z.string().optional(),
|
|
5952
|
+
lastName: z.string().optional()
|
|
5952
5953
|
}).optional() }).optional() }),
|
|
5953
5954
|
verify: async (payload) => {
|
|
5954
5955
|
try {
|
|
@@ -7094,4 +7095,4 @@ var auth_exports = /* @__PURE__ */ __exportAll({
|
|
|
7094
7095
|
//#endregion
|
|
7095
7096
|
export { escapeHtml as $, MemoryRateLimitStore as A, resolveAuthHooks as B, providerVerifiedEmail as C, PUBLIC_STORAGE_PREFIX as Ct, DEFAULT_FUNCTIONS_ANONYMOUS_LIMIT as D, isBootstrapWindowOpen as E, registerDevEmailSink as F, getEmailOtpTemplate as G, validatePasswordStrength as H, SMTPEmailService as I, getPasswordResetTemplate as J, getEmailVerificationTemplate as K, createEmailService as L, clearActiveDevEmailSink as M, createDevEmailSink as N, createDataRateLimiter as O, extractLinks as P, RawHtml as Q, assertEmailLinkBases as R, pkceTokenParams as S, isOperationAllowed as St, createBuiltinAuthAdapter as T, verifyPassword as U, hashPassword as V, generateSecurePassword as W, getWelcomeEmailTemplate as X, getUserInvitationTemplate as Y, resolveEmailBranding as Z, verifyOidcIdToken as _, extractBearerToken as _t, resolveRateLimitStoreKind as a, extractUserFromToken as at, createGoogleProvider as b, scopeDataDriver as bt, createSlackProvider as c, publicObjectAuth as ct, createDiscordProvider as d, requireAuth as dt, html as et, createTwitterProvider as f, createApiKeyPreAuth as ft, tryVerifyOidcIdToken as g, validateApiKey as gt, createMicrosoftProvider as h, isApiKeyToken as ht, createApiKeyStore as i, createRequireAuth as it, activeDevEmailSink as j, defaultAuthLimiter as k, createBitbucketProvider as l, queryTokenAuth as lt, createAppleProvider as m, createStorageApiKeyGuard as mt, createCustomAuthAdapter as n, createAdapterAuthMiddleware as nt, createSqlRateLimitStore as o, fileTokenAuth as ot, createFacebookProvider as p, createFunctionApiKeyGuard as pt, getMagicLinkTemplate as q, createApiKeyRoutes as r, createAuthMiddleware as rt, createSpotifyProvider as s, optionalAuth as st, auth_exports as t, raw as tt, createGitLabProvider as u, requireAdmin as ut, createGitHubProvider as v, safeCompare as vt, createJwksRoutes as w, isPublicStoragePath as wt, oauthCodeFlowSchema as x, httpMethodToOperation as xt, createLinkedinProvider as y, SERVICE_IDENTITY as yt, resolveEmailLinkBase as z };
|
|
7096
7097
|
|
|
7097
|
-
//# sourceMappingURL=auth-
|
|
7098
|
+
//# sourceMappingURL=auth-DJsLXsCR.js.map
|