Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Parameterize `CSRF` middleware #1909
An issue that I'm about to bump into is bringing the tests (and examples?) inline with this new generalised API.
To get the types to align, due to
val csrf = CSRF.withGeneratedKey[OptionT[IO, ?], IO](clock = testClock).value.unsafeRunSync().get
... which is fairly disgusting (and I think will need to be repeated several times through the test).
Any suggestions for things I can do to mitigate this in the implementation?