mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-10 12:25:02 +00:00
feat: download data exports directly from the server without a JS download step
This commit is contained in:
parent
fc4f106afb
commit
9c1568b911
7 changed files with 320 additions and 42 deletions
|
@ -81,7 +81,7 @@ export function initAuth(app: express.Express) {
|
|||
passport.use(
|
||||
"api-token",
|
||||
new CustomStrategy(async (req, cb) => {
|
||||
const apiKey = req.header("X-Api-Key");
|
||||
const apiKey = req.header("X-Api-Key") || req.body?.["X-Api-Key"];
|
||||
if (!apiKey) return cb("API key missing");
|
||||
|
||||
const userId = await apiLogins.getUserIdByApiKey(apiKey);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue