We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b968c84 commit b75c0d9Copy full SHA for b75c0d9
packages/ntfy/src/NtfyClient.ts
@@ -121,7 +121,7 @@ export async function publish<T extends Config>(publishConfig: T): Promise<Respo
121
if (publishConfig.authorization) {
122
requestConfig.withCredentials = true;
123
if (typeof publishConfig.authorization === 'string') {
124
- requestConfig.headers.Authorization = `Basic ${publishConfig.authorization}`;
+ requestConfig.headers.Authorization = `Bearer ${publishConfig.authorization}`;
125
} else {
126
const credentials = `${publishConfig.authorization.username}:${publishConfig.authorization.password}`;
127
requestConfig.headers.Authorization = `Basic ${Buffer.from(credentials).toString('base64')}`;
0 commit comments