@rebasepro/server 0.28.1 → 0.29.0-canary.g0e3a0e7
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-LXeAF6Ks.js → GCSStorageController-Ch3Ridyt.js} +4 -4
- package/dist/{GCSStorageController-LXeAF6Ks.js.map → GCSStorageController-Ch3Ridyt.js.map} +1 -1
- package/dist/{S3StorageController-CVKMUXo_.js → S3StorageController-CmNMg7Gu.js} +4 -4
- package/dist/{S3StorageController-CVKMUXo_.js.map → S3StorageController-CmNMg7Gu.js.map} +1 -1
- package/dist/{access-BDz4FO9D.js → access-BZjeLhf5.js} +7 -7
- package/dist/{access-BDz4FO9D.js.map → access-BZjeLhf5.js.map} +1 -1
- package/dist/api/rest/api-generator.d.ts +19 -0
- package/dist/{ast-schema-editor-C4bDSb61.js → ast-schema-editor-Dg7BWKE3.js} +3 -3
- package/dist/{ast-schema-editor-C4bDSb61.js.map → ast-schema-editor-Dg7BWKE3.js.map} +1 -1
- package/dist/auth/cookie-utils.d.ts +14 -6
- package/dist/auth/rate-limiter.d.ts +8 -0
- package/dist/{auth-CZGfVKcL.js → auth-CSWKaSgJ.js} +70 -18
- package/dist/auth-CSWKaSgJ.js.map +1 -0
- package/dist/{auth_adapter-B7RUMk6e.js → auth_adapter-HFv5axIT.js} +20 -2
- package/dist/auth_adapter-HFv5axIT.js.map +1 -0
- package/dist/backend/options.d.ts +3 -0
- package/dist/backend-CaG_Jyso.js.map +1 -1
- package/dist/{backup-BmzY9xdN.js → backup-woinIDjt.js} +9 -9
- package/dist/{backup-BmzY9xdN.js.map → backup-woinIDjt.js.map} +1 -1
- package/dist/boot/driver.d.ts +4 -0
- package/dist/boot/sources.d.ts +7 -0
- package/dist/{branch-routes-DpgaeTJl.js → branch-routes-F5VIJrZp.js} +3 -3
- package/dist/{branch-routes-DpgaeTJl.js.map → branch-routes-F5VIJrZp.js.map} +1 -1
- package/dist/{contract-routes-vYiBHbjI.js → contract-routes-D8Vsxjx8.js} +3 -3
- package/dist/{contract-routes-vYiBHbjI.js.map → contract-routes-D8Vsxjx8.js.map} +1 -1
- package/dist/{cron-loader-C_C-lNgG.js → cron-loader-n9Uh_E1a.js} +3 -3
- package/dist/{cron-loader-C_C-lNgG.js.map → cron-loader-n9Uh_E1a.js.map} +1 -1
- package/dist/{cron-routes-DlwOV6zl.js → cron-routes-mLexIC9F.js} +4 -4
- package/dist/{cron-routes-DlwOV6zl.js.map → cron-routes-mLexIC9F.js.map} +1 -1
- package/dist/{cron-scheduler-6ipIm5mm.js → cron-scheduler-DhxuCDuI.js} +2 -2
- package/dist/{cron-scheduler-6ipIm5mm.js.map → cron-scheduler-DhxuCDuI.js.map} +1 -1
- package/dist/{cron-store-KIOM8LCC.js → cron-store-DzKz7jXF.js} +2 -2
- package/dist/{cron-store-KIOM8LCC.js.map → cron-store-DzKz7jXF.js.map} +1 -1
- package/dist/data_driver-D0mg1Y_x.js.map +1 -1
- package/dist/dist-B4YtgTMh.js +19359 -0
- package/dist/dist-B4YtgTMh.js.map +1 -0
- package/dist/env.d.ts +7 -0
- package/dist/{errors-DIWnZIDY.js → errors-DpTMfX77.js} +58 -8
- package/dist/errors-DpTMfX77.js.map +1 -0
- package/dist/{field-access-KYk8RGOx.js → field-access-CzKjatID.js} +3 -3
- package/dist/{field-access-KYk8RGOx.js.map → field-access-CzKjatID.js.map} +1 -1
- package/dist/{filter-dialect-CE4bloug.js → filter-dialect-C5wfpopB.js} +110 -9
- package/dist/{filter-dialect-CE4bloug.js.map → filter-dialect-C5wfpopB.js.map} +1 -1
- package/dist/{function-loader-CKB9b4uP.js → function-loader-BzKo2Oiu.js} +2 -2
- package/dist/{function-loader-CKB9b4uP.js.map → function-loader-BzKo2Oiu.js.map} +1 -1
- package/dist/{function-routes-DLaXaiQA.js → function-routes-CQ0z3WDt.js} +2 -2
- package/dist/{function-routes-DLaXaiQA.js.map → function-routes-CQ0z3WDt.js.map} +1 -1
- package/dist/functions/index.d.ts +1 -0
- package/dist/functions/index.js +10 -29
- package/dist/functions/index.js.map +1 -1
- package/dist/functions/wait-until.d.ts +29 -1
- package/dist/{history-recorder-BE4HWR-M.js → history-recorder-wkBuX7Np.js} +2 -2
- package/dist/{history-recorder-BE4HWR-M.js.map → history-recorder-wkBuX7Np.js.map} +1 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.es.js +2260 -1284
- package/dist/index.es.js.map +1 -1
- package/dist/init/surfaces.d.ts +19 -3
- package/dist/{jobs-CXTs9qXH.js → jobs-D61qYEGt.js} +2 -2
- package/dist/{jobs-CXTs9qXH.js.map → jobs-D61qYEGt.js.map} +1 -1
- package/dist/{jwt-5EvX3lQa.js → jwt-CBmQXYs-.js} +2 -2
- package/dist/{jwt-5EvX3lQa.js.map → jwt-CBmQXYs-.js.map} +1 -1
- package/dist/{keys-DJ1ZNcZi.js → keys-Cd_4l48g.js} +2 -2
- package/dist/{keys-DJ1ZNcZi.js.map → keys-Cd_4l48g.js.map} +1 -1
- package/dist/{logs-routes-DXLvMasE.js → logs-routes-08LiyYua.js} +2 -2
- package/dist/{logs-routes-DXLvMasE.js.map → logs-routes-08LiyYua.js.map} +1 -1
- package/dist/mcp/consent-page.d.ts +14 -1
- package/dist/mcp/mcp-apps.d.ts +51 -17
- package/dist/mcp/mcp-routes.d.ts +6 -1
- package/dist/mcp/mcp-tools.d.ts +44 -1
- package/dist/mcp/mcp-view.d.ts +107 -0
- package/dist/mcp/oauth-metadata.d.ts +7 -1
- package/dist/mcp/show-app-guide.d.ts +1 -0
- package/dist/metrics/database.d.ts +69 -0
- package/dist/metrics/db-connection-errors.d.ts +21 -0
- package/dist/{offline-BjJdcVBb-BOzzsnrh.js → offline-BjJdcVBb-B_bOcnDC.js} +4 -4
- package/dist/{offline-BjJdcVBb-BOzzsnrh.js.map → offline-BjJdcVBb-B_bOcnDC.js.map} +1 -1
- package/dist/{offline-store-Cxhh99Q--FB6fSf5A.js → offline-store-Cxhh99Q--DQ-M1M8d.js} +4 -4
- package/dist/{offline-store-Cxhh99Q--FB6fSf5A.js.map → offline-store-Cxhh99Q--DQ-M1M8d.js.map} +1 -1
- package/dist/{openapi-generator-B6aw_KuR.js → openapi-generator-B3LsKCon.js} +4 -4
- package/dist/{openapi-generator-B6aw_KuR.js.map → openapi-generator-B3LsKCon.js.map} +1 -1
- package/dist/{proxy-2nS5N63I.js → proxy-LUsudeht.js} +2 -2
- package/dist/{proxy-2nS5N63I.js.map → proxy-LUsudeht.js.map} +1 -1
- package/dist/{query-parser-DFVCjW5i.js → query-parser-C90z8csB.js} +6 -6
- package/dist/{query-parser-DFVCjW5i.js.map → query-parser-C90z8csB.js.map} +1 -1
- package/dist/{request-timeout-Cqm4JXtZ.js → request-timeout-DW2OBWfJ.js} +2 -2
- package/dist/{request-timeout-Cqm4JXtZ.js.map → request-timeout-DW2OBWfJ.js.map} +1 -1
- package/dist/{rls-simulator-routes-D5-XfjzW.js → rls-simulator-routes-igGu-giT.js} +4 -4
- package/dist/{rls-simulator-routes-D5-XfjzW.js.map → rls-simulator-routes-igGu-giT.js.map} +1 -1
- package/dist/{schema-editor-routes-DzSe6V0a.js → schema-editor-routes-kF1ZKCB2.js} +4 -4
- package/dist/{schema-editor-routes-DzSe6V0a.js.map → schema-editor-routes-kF1ZKCB2.js.map} +1 -1
- package/dist/serve-spa.d.ts +2 -10
- package/dist/{soft-delete-params-9lKBAlDw.js → soft-delete-params-DDRmxT2z.js} +2 -2
- package/dist/{soft-delete-params-9lKBAlDw.js.map → soft-delete-params-DDRmxT2z.js.map} +1 -1
- package/dist/{sql-export-routes-BxMqgAFX.js → sql-export-routes-DObpbf8x.js} +3 -3
- package/dist/{sql-export-routes-BxMqgAFX.js.map → sql-export-routes-DObpbf8x.js.map} +1 -1
- package/dist/{src-JQNz7cWv.js → src-BXDkXOtq.js} +2 -1
- package/dist/{src-JQNz7cWv.js.map → src-BXDkXOtq.js.map} +1 -1
- package/dist/{upload-validation-IYXn4xcm.js → upload-validation-B-psYLaN.js} +2 -2
- package/dist/{upload-validation-IYXn4xcm.js.map → upload-validation-B-psYLaN.js.map} +1 -1
- package/package.json +5 -5
- package/dist/auth-CZGfVKcL.js.map +0 -1
- package/dist/auth_adapter-B7RUMk6e.js.map +0 -1
- package/dist/dist-CT9HJehq.js +0 -22
- package/dist/dist-CT9HJehq.js.map +0 -1
- package/dist/errors-DIWnZIDY.js.map +0 -1
|
@@ -3,18 +3,19 @@ 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 { V as rewriteLegacyRlsFunctions, _ as scopesBeyond, a as KEY_MANAGEMENT_SCOPES, f as knownScopes, l as isAdminScope, m as roleNameProblem, o as SCOPE_TARGETS, p as parseScope, s as hasAdminRole, u as isBuiltInScope, x as validateScopes, y as summarizeRoles } from "./src-
|
|
6
|
+
import { V as rewriteLegacyRlsFunctions, _ as scopesBeyond, a as KEY_MANAGEMENT_SCOPES, f as knownScopes, l as isAdminScope, m as roleNameProblem, o as SCOPE_TARGETS, p as parseScope, s as hasAdminRole, u as isBuiltInScope, x as validateScopes, y as summarizeRoles } from "./src-BXDkXOtq.js";
|
|
7
7
|
import { n as isAnonymousUid, r as policy, t as ANONYMOUS_USER_ID } from "./policy-PdzX-Opd.js";
|
|
8
8
|
import { n as isSQLAdmin } from "./backend-CaG_Jyso.js";
|
|
9
|
-
import {
|
|
9
|
+
import { t as AUTH_FLOW_HEADER } from "./auth_adapter-HFv5axIT.js";
|
|
10
|
+
import { $ as accessTokenRefusalError, C as queryTokenAuth, E as requireAuth, G as isApiKeyToken, J as extractBearerToken, K as resolveApiKey, L as applySimulation, P as applyImpersonation, T as requireAdmin, X as SERVICE_IDENTITY, Y as safeCompare, Z as scopeDataDriver, _ as createAuthMiddleware, a as assertMayManageAccount, at as httpMethodToOperation, b as fileTokenAuth, c as configureAccess, f as processAccessControl, h as requireScopeByMethod, i as assertMayGrantRoles, l as getAccessModel, m as requireScope, n as accessModelFromCollections, nt as replaceUserPassword, o as callerIsAdmin, p as readRoleNames, q as validateApiKey, r as accessOf, rt as revokeAllSessions, s as callerScopes, t as AccessModelError, tt as judgeAccessToken, u as hasScope, v as createRequireAuth, w as refuse, x as optionalAuth, y as extractUserFromToken } from "./access-BZjeLhf5.js";
|
|
10
11
|
import { a as logger } from "./logger-SigQ2oZJ.js";
|
|
11
12
|
import { r as toSnakeCase } from "./strings.es-B7QLnHh2.js";
|
|
12
13
|
import { n as REBASE_USER_ROLE, r as revokeInternalTableSql } from "./internal-tables-CRaBxJeE.js";
|
|
13
14
|
import { t as firstSqlRow } from "./sql-rows-C6GEc2oE.js";
|
|
14
|
-
import { a as resolveListLimitParam } from "./query-parser-
|
|
15
|
-
import { _ as verifyAccessToken, a as generateAccessToken, c as getAccessTokenExpiry, d as hasAsymmetricSigningKey, f as hashRefreshToken, h as processJwtService, i as customClaimsOf, l as getJwks, m as jwtOf, n as configureJwt, o as generateDownloadToken, p as isJwtConfigured, s as generateRefreshToken, t as MAX_COOKIE_AGE_MS, u as getRefreshTokenExpiry, v as verifyDownloadToken, w as randomInt$1, x as require_jsonwebtoken } from "./jwt-
|
|
15
|
+
import { a as resolveListLimitParam } from "./query-parser-C90z8csB.js";
|
|
16
|
+
import { _ as verifyAccessToken, a as generateAccessToken, c as getAccessTokenExpiry, d as hasAsymmetricSigningKey, f as hashRefreshToken, h as processJwtService, i as customClaimsOf, l as getJwks, m as jwtOf, n as configureJwt, o as generateDownloadToken, p as isJwtConfigured, s as generateRefreshToken, t as MAX_COOKIE_AGE_MS, u as getRefreshTokenExpiry, v as verifyDownloadToken, w as randomInt$1, x as require_jsonwebtoken } from "./jwt-CBmQXYs-.js";
|
|
16
17
|
import { c as provisioningExec, n as SchemaChangeRefusedError, r as createDdlBootstrapper } from "./ddl-bootstrap-DhCuwhHM.js";
|
|
17
|
-
import { a as isDataException,
|
|
18
|
+
import { a as isDataException, i as errorHandler, l as warnIfDatabaseClosed, o as isDatabaseUnreachable, r as declaredErrorAnswer, t as ApiError } from "./errors-DpTMfX77.js";
|
|
18
19
|
import { createHash, randomBytes, randomInt } from "node:crypto";
|
|
19
20
|
import { Hono } from "hono";
|
|
20
21
|
import { promisify } from "util";
|
|
@@ -864,7 +865,7 @@ var styles = {
|
|
|
864
865
|
`),
|
|
865
866
|
button: raw(`
|
|
866
867
|
display: inline-block;
|
|
867
|
-
background-color: #
|
|
868
|
+
background-color: #0070f4;
|
|
868
869
|
color: #ffffff;
|
|
869
870
|
font-size: 16px;
|
|
870
871
|
font-weight: 600;
|
|
@@ -1021,7 +1022,7 @@ function getPasswordResetTemplate(resetUrl, user, appName = DEFAULT_APP_NAME, lo
|
|
|
1021
1022
|
<p style="${styles.paragraph}">
|
|
1022
1023
|
Or copy and paste this link into your browser:
|
|
1023
1024
|
</p>
|
|
1024
|
-
<p style="color: #
|
|
1025
|
+
<p style="color: #0070f4; word-break: break-all; font-size: 14px;">
|
|
1025
1026
|
${resetUrl}
|
|
1026
1027
|
</p>
|
|
1027
1028
|
|
|
@@ -1096,7 +1097,7 @@ function getEmailVerificationTemplate(verifyUrl, user, appName = DEFAULT_APP_NAM
|
|
|
1096
1097
|
<p style="${styles.paragraph}">
|
|
1097
1098
|
Or copy and paste this link into your browser:
|
|
1098
1099
|
</p>
|
|
1099
|
-
<p style="color: #
|
|
1100
|
+
<p style="color: #0070f4; word-break: break-all; font-size: 14px;">
|
|
1100
1101
|
${verifyUrl}
|
|
1101
1102
|
</p>
|
|
1102
1103
|
|
|
@@ -1172,7 +1173,7 @@ function getUserInvitationTemplate(setPasswordUrl, user, appName = DEFAULT_APP_N
|
|
|
1172
1173
|
<p style="${styles.paragraph}">
|
|
1173
1174
|
Or copy and paste this link into your browser:
|
|
1174
1175
|
</p>
|
|
1175
|
-
<p style="color: #
|
|
1176
|
+
<p style="color: #0070f4; word-break: break-all; font-size: 14px;">
|
|
1176
1177
|
${setPasswordUrl}
|
|
1177
1178
|
</p>
|
|
1178
1179
|
|
|
@@ -1381,7 +1382,7 @@ function getMagicLinkTemplate(magicLinkUrl, user, appName = DEFAULT_APP_NAME, lo
|
|
|
1381
1382
|
<p style="${styles.paragraph}">
|
|
1382
1383
|
Or copy and paste this link into your browser:
|
|
1383
1384
|
</p>
|
|
1384
|
-
<p style="color: #
|
|
1385
|
+
<p style="color: #0070f4; word-break: break-all; font-size: 14px;">
|
|
1385
1386
|
${magicLinkUrl}
|
|
1386
1387
|
</p>
|
|
1387
1388
|
|
|
@@ -1460,7 +1461,7 @@ function getEmailChangeTemplate(confirmUrl, user, newEmail, appName = DEFAULT_AP
|
|
|
1460
1461
|
<p style="${styles.paragraph}">
|
|
1461
1462
|
Or copy and paste this link into your browser:
|
|
1462
1463
|
</p>
|
|
1463
|
-
<p style="color: #
|
|
1464
|
+
<p style="color: #0070f4; word-break: break-all; font-size: 14px;">
|
|
1464
1465
|
${confirmUrl}
|
|
1465
1466
|
</p>
|
|
1466
1467
|
|
|
@@ -2782,6 +2783,19 @@ var DEFAULT_AUTH_LIMIT = {
|
|
|
2782
2783
|
};
|
|
2783
2784
|
var defaultAuthLimiter = createRateLimiter(DEFAULT_AUTH_LIMIT);
|
|
2784
2785
|
/**
|
|
2786
|
+
* `GET /auth/config`: what the login screen offers, read on every page load
|
|
2787
|
+
* (twice, by the admin app) before anyone has signed in. It is public and
|
|
2788
|
+
* non-secret, so it gets its own bucket — counted in the login budget, a
|
|
2789
|
+
* hundred page loads from one office address locked everyone there out of
|
|
2790
|
+
* signing in. Bounded still, only far above what browsing can reach.
|
|
2791
|
+
*/
|
|
2792
|
+
var AUTH_CONFIG_LIMIT = {
|
|
2793
|
+
name: "auth-config",
|
|
2794
|
+
windowMs: 900 * 1e3,
|
|
2795
|
+
limit: 3e3,
|
|
2796
|
+
message: "Too many requests, please try again later."
|
|
2797
|
+
};
|
|
2798
|
+
/**
|
|
2785
2799
|
* Pre-configured strict rate limiter for sensitive endpoints (password reset, verification).
|
|
2786
2800
|
* 50 requests per 15 minutes per IP.
|
|
2787
2801
|
*/
|
|
@@ -3509,9 +3523,42 @@ function getCookieSettings(config) {
|
|
|
3509
3523
|
};
|
|
3510
3524
|
}
|
|
3511
3525
|
/**
|
|
3526
|
+
* Whether the request asks for the refresh token in the body
|
|
3527
|
+
* (`x-rebase-auth-flow: json`): a client with no cookie jar, or one keeping a
|
|
3528
|
+
* sign-in apart from the page's cookie session.
|
|
3529
|
+
*/
|
|
3530
|
+
function requestsJsonFlow(c) {
|
|
3531
|
+
return c.req.header(AUTH_FLOW_HEADER)?.trim().toLowerCase() === "json";
|
|
3532
|
+
}
|
|
3533
|
+
/**
|
|
3534
|
+
* The cookie settings that apply to this request: the server's, or none when
|
|
3535
|
+
* the request asks for the json flow.
|
|
3536
|
+
*
|
|
3537
|
+
* A json-flow request is answered exactly as a server without `cookieAuth`
|
|
3538
|
+
* answers it. The refresh token is read from the request body and returned in
|
|
3539
|
+
* the response body; the cookie is never read, set or cleared. That is what
|
|
3540
|
+
* keeps the exemption safe:
|
|
3541
|
+
*
|
|
3542
|
+
* - The cookie is the only credential a browser attaches by itself, and a
|
|
3543
|
+
* json-flow request never reads it. Nothing it does can be forged across
|
|
3544
|
+
* sites, and a cookie the page's script cannot read is never rotated into a
|
|
3545
|
+
* token handed back in a body it can. The cookie path is unchanged.
|
|
3546
|
+
* - Every other credential a token-issuing route takes is in the request
|
|
3547
|
+
* itself — a password, a code, the token in the body, a bearer access
|
|
3548
|
+
* token — so whoever sends it already holds what the body token gives. A
|
|
3549
|
+
* bearer access token already reaches a durable sign-in on its own: it can
|
|
3550
|
+
* link a provider identity its holder controls.
|
|
3551
|
+
* - The header is not a CORS-safelisted one, so a cross-site page cannot
|
|
3552
|
+
* send it without a preflight the server's CORS policy answers.
|
|
3553
|
+
*/
|
|
3554
|
+
function cookieConfigFor(c, config) {
|
|
3555
|
+
return config && !requestsJsonFlow(c) ? config : void 0;
|
|
3556
|
+
}
|
|
3557
|
+
/**
|
|
3512
3558
|
* Set the refresh token as an httpOnly cookie on the response.
|
|
3513
3559
|
*/
|
|
3514
|
-
function setRefreshCookie(c, refreshToken,
|
|
3560
|
+
function setRefreshCookie(c, refreshToken, cookieAuth) {
|
|
3561
|
+
const config = cookieConfigFor(c, cookieAuth);
|
|
3515
3562
|
if (!config) return;
|
|
3516
3563
|
const settings = getCookieSettings(config);
|
|
3517
3564
|
const isSecure = settings.secure ?? true;
|
|
@@ -3525,7 +3572,8 @@ function setRefreshCookie(c, refreshToken, config) {
|
|
|
3525
3572
|
/**
|
|
3526
3573
|
* Clear the refresh token cookie.
|
|
3527
3574
|
*/
|
|
3528
|
-
function clearRefreshCookie(c,
|
|
3575
|
+
function clearRefreshCookie(c, cookieAuth) {
|
|
3576
|
+
const config = cookieConfigFor(c, cookieAuth);
|
|
3529
3577
|
if (!config) return;
|
|
3530
3578
|
const settings = getCookieSettings(config);
|
|
3531
3579
|
let cookie = `${settings.name}=; Path=${settings.path}; HttpOnly; SameSite=${settings.sameSite}; Max-Age=0`;
|
|
@@ -3535,6 +3583,7 @@ function clearRefreshCookie(c, config) {
|
|
|
3535
3583
|
}
|
|
3536
3584
|
/**
|
|
3537
3585
|
* Read the refresh token from the request — cookie first, then body fallback.
|
|
3586
|
+
* A json-flow request is read from the body alone (see `cookieConfigFor`).
|
|
3538
3587
|
*
|
|
3539
3588
|
* An empty string is no token, wherever it comes from. In cookie mode every
|
|
3540
3589
|
* response this server sends carries `refreshToken: ""` (see
|
|
@@ -3543,7 +3592,8 @@ function clearRefreshCookie(c, config) {
|
|
|
3543
3592
|
* body's `""` as the token, or refusing it at the schema, kept the cookie
|
|
3544
3593
|
* beside it from ever being read.
|
|
3545
3594
|
*/
|
|
3546
|
-
function readRefreshToken(c, body,
|
|
3595
|
+
function readRefreshToken(c, body, cookieAuth) {
|
|
3596
|
+
const config = cookieConfigFor(c, cookieAuth);
|
|
3547
3597
|
if (config) {
|
|
3548
3598
|
const settings = getCookieSettings(config);
|
|
3549
3599
|
const cookieHeader = c.req.header("cookie") || "";
|
|
@@ -3577,9 +3627,11 @@ function decodeCookieValue(value) {
|
|
|
3577
3627
|
}
|
|
3578
3628
|
}
|
|
3579
3629
|
/**
|
|
3580
|
-
* Redact the refresh token from the response body when cookie mode is active
|
|
3630
|
+
* Redact the refresh token from the response body when cookie mode is active
|
|
3631
|
+
* for this request (not for a json-flow one: see `cookieConfigFor`).
|
|
3581
3632
|
*/
|
|
3582
|
-
function redactRefreshToken(response, c, refreshToken,
|
|
3633
|
+
function redactRefreshToken(response, c, refreshToken, cookieAuth) {
|
|
3634
|
+
const config = cookieConfigFor(c, cookieAuth);
|
|
3583
3635
|
if (!config) return response;
|
|
3584
3636
|
setRefreshCookie(c, refreshToken, config);
|
|
3585
3637
|
return {
|
|
@@ -8971,6 +9023,6 @@ var auth_exports = /* @__PURE__ */ __exportAll({
|
|
|
8971
9023
|
verifyPassword: () => verifyPassword
|
|
8972
9024
|
});
|
|
8973
9025
|
//#endregion
|
|
8974
|
-
export {
|
|
9026
|
+
export { getEmailChangeNoticeTemplate as $, createDataRateLimitCheck as A, registerDevEmailSink as B, createJwksRoutes as C, AUTH_CONFIG_LIMIT as D, isBootstrapWindowOpen as E, activeDevEmailSink as F, validatePasswordStrength as G, createEmailService as H, clearActiveDevEmailSink as I, createAdapterAuthMiddleware as J, verifyPassword as K, createDevEmailSink as L, createRateLimiter as M, setSharedRateLimitStore as N, DEFAULT_FUNCTIONS_ANONYMOUS_LIMIT as O, MemoryRateLimitStore as P, resolveEmailLinkBase as Q, devEmailSinkFor as R, createApiKeyStore as S, configureUserPicking as T, resolveAuthHooks as U, SMTPEmailService as V, hashPassword as W, generateSecurePassword as X, completeUserCreation as Y, assertEmailLinkBases as Z, oauthCodeFlowSchema as _, createBitbucketProvider as a, getUserInvitationTemplate as at, createApiKeyRoutes as b, createTwitterProvider as c, RawHtml as ct, createMicrosoftProvider as d, raw as dt, getEmailChangeTemplate as et, tryVerifyOidcIdToken as f, createSqlRateLimitStore as ft, createGoogleProvider as g, createLinkedinProvider as h, createSlackProvider as i, getPasswordResetTemplate as it, createDataRateLimiter as j, createAuthLimiters as k, createFacebookProvider as l, escapeHtml as lt, createGitHubProvider as m, securityRuleToConditions as mt, createCustomAuthAdapter as n, getEmailVerificationTemplate as nt, createGitLabProvider as o, getWelcomeEmailTemplate as ot, verifyOidcIdToken as p, resolveRateLimitStoreKind as pt, adapterRefusal as q, createSpotifyProvider as r, getMagicLinkTemplate as rt, createDiscordProvider as s, resolveEmailBranding as st, auth_exports as t, getEmailOtpTemplate as tt, createAppleProvider as u, html as ut, pkceTokenParams as v, createBuiltinAuthAdapter as w, createPersonalKeyRoutes as x, providerVerifiedEmail as y, extractLinks as z };
|
|
8975
9027
|
|
|
8976
|
-
//# sourceMappingURL=auth-
|
|
9028
|
+
//# sourceMappingURL=auth-CSWKaSgJ.js.map
|