1
0
Fork 0
mirror of https://github.com/binwiederhier/ntfy.git synced 2025-12-02 05:10:06 +01:00

Merge pull request #1430 from hxtmdev/patch-1

Fix base64 snippets in Publishing
This commit is contained in:
Philipp C. Heckel 2025-08-23 10:44:17 -04:00 committed by GitHub
commit 965110b2c3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -3679,13 +3679,13 @@ authParam = base64_raw(authHeader) // -> QmFzaWMgZEdWemRIVnpaWEk2Wm1GclpYQmhjM0
The following command will generate the appropriate value for you on *nix systems:
```
echo -n "Basic `echo -n 'testuser:fakepassword' | base64`" | base64 | tr -d '='
echo -n "Basic `echo -n 'testuser:fakepassword' | base64 -w0`" | base64 -w0 | tr -d '='
```
For access tokens, you can use this instead:
```
echo -n "Bearer faketoken" | base64 | tr -d '='
echo -n "Bearer faketoken" | base64 -w0 | tr -d '='
```
## Advanced features