This commit is contained in:
Benjamin Toby
2025-07-10 12:13:03 +01:00
parent 5ab079f687
commit f9725a1d6f
22 changed files with 262 additions and 177 deletions
+1 -1
View File
@@ -118,7 +118,7 @@ function loginUser(_a) {
}
const cookieNames = (0, get_auth_cookie_names_1.default)({
database,
userId: apiUserID,
userId: apiUserID || process.env.DSQL_API_USER_ID,
});
if (httpResponse.csrf && !skipWriteAuthFile) {
(0, write_auth_files_1.writeAuthFile)(httpResponse.csrf, JSON.stringify(httpResponse.payload), cleanupTokens && ((_b = httpResponse.payload) === null || _b === void 0 ? void 0 : _b.id)