1
0
Fork 0
mirror of https://github.com/binwiederhier/ntfy.git synced 2025-11-29 11:50:22 +01:00

Fix base64 snippets in Publishing

-w0 is usually needed for longer outputs
This commit is contained in:
Daniel Höxtermann 2025-08-23 16:34:50 +02:00 committed by GitHub
parent e39498702d
commit c8ac104043
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