1
0
Fork 0
mirror of https://github.com/bastienwirtz/homer.git synced 2026-01-22 18:06:11 +00:00

Use consistent auth format with auth field instead of username/password

This commit is contained in:
Igor Kulman 2025-09-21 22:23:02 +02:00 committed by Bastien Wirtz
parent b821651017
commit 9054bd8941

View file

@ -100,8 +100,8 @@ export default {
};
// Add HTTP Basic Auth if credentials are provided
if (this.item.username && this.item.password) {
const credentials = btoa(`${this.item.username}:${this.item.password}`);
if (this.item.auth) {
const credentials = btoa(this.item.auth);
options.headers["Authorization"] = `Basic ${credentials}`;
}