Skip to content

Commit b60422c

Browse files
committed
fix: Try auth prefixed with Bearer
1 parent 59fce82 commit b60422c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/backend/notifier/NtfyWebhookNotifier.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ export class NtfyWebhookNotifier extends AbstractWebhookNotifier {
8181
priority: this.priorities[payload.priority],
8282
};
8383
if(this.config.token !== undefined) {
84-
req.authorization = this.config.token;
84+
req.authorization = `Bearer ${this.config.token.replace(/Bearer/i, '').trim()}`;
8585
} else if (this.config.username !== undefined) {
8686
req.authorization = {
8787
username: this.config.username,

0 commit comments

Comments
 (0)