Basic auth header
FreeLogic@rabbinatix/basic-auth-header by Rabbinatixupdated Oct 4, 2026
Builds `Basic YWxleDpzM2NyZXQ=` from a user and a password.
HTTP Basic authentication sends user:password encoded as Base64. Pair it with Read basic auth.
Shows: Format, Base64 Encode.
How to use it
Add it to your logic, then add a Call Function step in any logic and pick Basic auth header. It belongs to no system, so every system can use it. Or download the TypeScript and call it from your own code.
Inputs
user: Text
password: Text · secret, masked in runs
Outputs
header: Text
Previewdrag the steps around; scroll to zoom
Function Entry, Input / output. 0 inputs, 3 outputs. step 1 of 5
Basic auth header
user
password
Format, String. 2 inputs, 1 output. step 2 of 5
Format "{user}:{password}"
user
password
result
Base64 Encode, String. 1 input, 1 output. step 3 of 5
Base64 Encode
text
result
Format, String. 1 input, 1 output. step 4 of 5
Format "Basic {token}"
token
result
Return, Input / output. 2 inputs, 0 outputs. step 5 of 5
Return
header
Arrow keys: next or previous step in flow order. Alt with arrows: nearest step in that direction. Enter: open. Shift F10: more actions.
Examplesrun live against the logic · 2/2 pass
| Passed | Example | Input | Output |
|---|---|---|---|
| A user | {"user":"alex","password":"s3cret"} | {"header":"Basic YWxleDpzM2NyZXQ="} | |
| Non-ASCII | {"user":"zoë","password":"pw"} | {"header":"Basic em/Dqzpwdw=="} |
Try it
Versions
In this package
Basic auth header (entry)
