morphismtech / squeal

Squeal, a deep embedding of SQL in Haskell
352 stars 32 forks source link

Request: Add JWT Support #350

Open Cajunvoodoo opened 7 months ago

Cajunvoodoo commented 7 months ago

It would be awesome to have JWT support in the same way we have UUID support. This shouldn't be too hard to add, since it appears that the UUID implementation isn't too complex. Please let me know if I'm mistaken here! If I have time, I might look into writing this myself.

What would be required beyond adding a new field to PGType and writing the raw UnsafeExpressions?

echatav commented 7 months ago

You might also need to add instances for encoding and decoding and inlining between the Haskell type and corresponding Postgres type for JWT.