mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-09-16 14:51:37 +02:00
fix(importer-postman): stop swapping the API key name and its value (#643)
This commit is contained in:
@@ -294,8 +294,10 @@ function importAuth(rawAuth: unknown): Pick<HttpRequest, "authentication" | "aut
|
||||
authenticationType: "apikey",
|
||||
authentication: {
|
||||
location: a.in === "query" ? "query" : "header",
|
||||
key: a.value != null ? String(a.value) : undefined,
|
||||
value: a.key != null ? String(a.key) : undefined,
|
||||
// Postman's "key" is the header/parameter name and its "value" is the
|
||||
// secret, matching Yaak's own apikey auth.
|
||||
key: a.key != null ? String(a.key) : undefined,
|
||||
value: a.value != null ? String(a.value) : undefined,
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user