You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 29, 2021. It is now read-only.
There seem to be no issue for this so I'm creating one. Let me paste a link first, as comments in code are pretty self-explanatory.
This issue seem to affect and break code when using some other packages like servant-checked-exceptions. I've been trying to set up a new auth protected endpoint which resulted in type error.
Simple API example using servant-auth and servant-checked-exceptions:
• Couldn't match type ‘servant-checked-exceptions-core-2.0.0.0:Servant.Checked.Exceptions.Internal.Envelope.Envelope
'[SomeError]
(Headers
'[Header "Set-Cookie" SetCookie, Header "Set-Cookie" SetCookie]
SomeResp)’
with ‘Headers '[Header "Set-Cookie" SetCookie] cookied1’
arising from a use of ‘serveWithContext’
• In the second argument of ‘($)’, namely
‘serveWithContext api cfg (server defaultCookieSettings jwtCfg)’
In the second argument of ‘($)’, namely
‘addCors
$ serveWithContext api cfg (server defaultCookieSettings jwtCfg)’
In the second argument of ‘($)’, namely
‘logStdoutDev
$ addCors
$ serveWithContext api cfg (server defaultCookieSettings jwtCfg)’
|
50 | serveWithContext api cfg (server defaultCookieSettings jwtCfg)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Also while login endpoint has to explicitly specify Set-Cookie headers, they are automagically added to protected endpoints. In my opinion it might be quite confusing for newcomers. It would be nice if we maintain similar level of verbosity between endpoints.
The text was updated successfully, but these errors were encountered:
Hi,
There seem to be no issue for this so I'm creating one. Let me paste a link first, as comments in code are pretty self-explanatory.
This issue seem to affect and break code when using some other packages like servant-checked-exceptions. I've been trying to set up a new auth protected endpoint which resulted in type error.
Simple API example using servant-auth and servant-checked-exceptions:
Results in error:
Also while login endpoint has to explicitly specify Set-Cookie headers, they are automagically added to protected endpoints. In my opinion it might be quite confusing for newcomers. It would be nice if we maintain similar level of verbosity between endpoints.
The text was updated successfully, but these errors were encountered: