Skip to content

Commit b75c0d9

Browse files
authored
fix(ntfy): Authorization using a Token (#1082)
1 parent b968c84 commit b75c0d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/ntfy/src/NtfyClient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ export async function publish<T extends Config>(publishConfig: T): Promise<Respo
121121
if (publishConfig.authorization) {
122122
requestConfig.withCredentials = true;
123123
if (typeof publishConfig.authorization === 'string') {
124-
requestConfig.headers.Authorization = `Basic ${publishConfig.authorization}`;
124+
requestConfig.headers.Authorization = `Bearer ${publishConfig.authorization}`;
125125
} else {
126126
const credentials = `${publishConfig.authorization.username}:${publishConfig.authorization.password}`;
127127
requestConfig.headers.Authorization = `Basic ${Buffer.from(credentials).toString('base64')}`;

0 commit comments

Comments
 (0)