© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
Question about `securityDecode` returning an empty string instead of `Option.none()` when no API ... - Effect Community
EC
Effect Community
•
8mo ago
mil2
Question about `securityDecode` returning an empty string instead of `Option.none()` when no API ...
Man Effect is so good
, just mocked my auth layer in about 15 seconds
. I
've been living in the dark ages
Got a question about securityDecode though
. Why does it return an empty string as opposed to an Option
.none
(
) when a api key
/token is not provided
?
https://github.com/Effect-TS/effect/blob/55d48a626461c95ccdd7ba311afe26cb42d6dd64/packages/platform/src/HttpApiBuilder.ts#L1015
Effect Community
Join
Production-grade applications in TypeScript.
6,221
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Transforming an empty list into Option.none
EC
Effect Community / 🚀-beginners
3y ago
Filtering Empty String to Option.none or Option.some in TypeScript
EC
Effect Community / 🚀-beginners
2y ago
Sorting an array with Option.none()
EC
Effect Community / 🚀-beginners
2y ago
Converting Tuple of `[Option<number>, Option<string>]` to `Option<[number,string]>`
EC
Effect Community / 🚀-beginners
3y ago