Rabbinatix
Sign inGet started
Store

Read basic auth

FreeLogic
@rabbinatix/read-basic-auth by Rabbinatixupdated Oct 4, 2026

Gets the user and password back out of a `Basic …` header.

Sign in to add

Checks the Basic prefix, decodes the rest from Base64 and splits at the first : (passwords may contain more). Anything else gives valid: false.

Shows: Starts With, Branch, Base64 Decode, Find Text, Substring.

How to use it

Add it to your logic, then add a Call Function step in any logic and pick Read basic auth. It belongs to no system, so every system can use it. Or download the TypeScript and call it from your own code.

Inputs
header: Text · secret, masked in runs
Outputs
valid: Yes / No
user: Text (may be empty)
password: Text (may be empty)
Previewdrag the steps around; scroll to zoom
Function Entry, Input / output. 0 inputs, 2 outputs. step 1 of 11
Read basic auth
header
Starts With, String. 2 inputs, 1 output. step 2 of 11
Starts With
text
prefix
result
Branch, Flow control. 2 inputs, 2 outputs. step 3 of 11
Branch
condition
True
False
Substring, String. 3 inputs, 1 output. step 4 of 11
Substring
text
start
end
result
Base64 Decode, String. 1 input, 1 output. step 5 of 11
Base64 Decode
text
result
Find Text, String. 2 inputs, 1 output. step 6 of 11
Find Text
text
search
index
Substring, String. 3 inputs, 1 output. step 7 of 11
Substring
text
start
end
result
Add, Operators. 2 inputs, 1 output. step 8 of 11
+
A
B
result
Substring, String. 3 inputs, 1 output. step 9 of 11
Substring
text
start
end
result
Return, Input / output. 4 inputs, 0 outputs. step 10 of 11
Return
valid
user
password
Return, Input / output. 4 inputs, 0 outputs. step 11 of 11
Return
valid
user
password

Arrow keys: next or previous step in flow order. Alt with arrows: nearest step in that direction. Enter: open. Shift F10: more actions.

100%
Examplesrun live against the logic · 2/2 pass
PassedExampleInputOutput
A header{"header":"Basic YWxleDpzM2NyZXQ="}{"valid":true,"user":"alex","password":"s3cret"}
A bearer token{"header":"Bearer abc"}{"valid":false,"user":null,"password":null}
Try it
Versions
In this package
Read basic auth (entry)