stringFromBase64 #165
Replies: 6 comments 10 replies
-
|
Hmm. What about The encoded form is just Base64. But you can pass in the schema for the internal type. Something like... Base64Of(
JsonStringOf(
Struct({
foo: String,
bar: Number,
})
)
)would decode Can also do the same kind of thing with Base64Url, Jwt, probably others |
Beta Was this translation helpful? Give feedback.
-
|
Ohh, that's very cool. I was thinking about the direction to go with JsonSchema, and this seems like a great direction. What's bikeshedding? |
Beta Was this translation helpful? Give feedback.
-
|
Oooh, and then we could even add a JwtOf 👀 but probably wouldn't be able to do the signature part though. |
Beta Was this translation helpful? Give feedback.
-
|
Oooh, this gives me another idea, what about also having some of the basic auth headers included? If we build out the Jwt verification, we might as well also throw in |
Beta Was this translation helpful? Give feedback.
-
|
We can also make this a v2 target, but I think we could get |
Beta Was this translation helpful? Give feedback.
-
|
extending this further:
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Would there be value in a stringFromBase64? I think it might even be convertible into a Schema with a refine (tryCatching a btoa or the better version) and an imap
Beta Was this translation helpful? Give feedback.
All reactions