servant-websockets icon indicating copy to clipboard operation
servant-websockets copied to clipboard

WebSocket with Servant.Auth: overlapping instance for HasServer

Open Gab0 opened this issue 2 years ago • 0 comments

Pairing Servant.Auth authentication with a Servant.WebSockets endpoint yields an overlapping instances error.

    • Overlapping instances for HasServer
                                  (Servant.Auth.Server.Internal.AddSetCookie.AddSetCookieApi
                                     (Servant.Auth.Server.Internal.AddSetCookie.AddSetCookieApi
                                        Servant.API.WebSocket.WebSocketPending))
                                  '[Backend ByteString, CookieSettings, JWTSettings]
        arising from a use of ‘hoistServerWithContext’

This error was mentioned in a comment in #2. Does anyone know how solve this or have an idea on how to start?

Gab0 avatar Dec 17 '22 16:12 Gab0