wasp icon indicating copy to clipboard operation
wasp copied to clipboard

AuthMethods + Template Haskell experiment

Open infomiho opened this issue 11 months ago • 0 comments

I was thinking how can we make adding a new auth method a more type safe process. Since we are kinda loosely defining them by adding a new key in the AuthMethods record, we don't really have a union data type over which we can force exhaustive pattern matches.

I've played a bit with Template Haskell to try to change that.

infomiho avatar Mar 23 '24 15:03 infomiho