@@ -15,15 +15,21 @@ import Servant.Common.Req (Req)
1515-- | For a resource protected by authentication (e.g. AuthProtect), we need
1616-- to provide the client with some data used to add authentication data
1717-- to a request
18+--
19+-- NOTE: THIS API IS EXPERIMENTAL AND SUBJECT TO CHANGE
1820type family AuthClientData a :: *
1921
2022-- | For better type inference and to avoid usage of a data family, we newtype
2123-- wrap the combination of some 'AuthClientData' and a function to add authentication
2224-- data to a request
25+--
26+-- NOTE: THIS API IS EXPERIMENTAL AND SUBJECT TO CHANGE
2327newtype AuthenticateReq a =
2428 AuthenticateReq { unAuthReq :: (AuthClientData a, AuthClientData a -> Req -> Req) }
2529
2630-- | Handy helper to avoid wrapping datatypes in tuples everywhere.
31+--
32+-- NOTE: THIS API IS EXPERIMENTAL AND SUBJECT TO CHANGE
2733mkAuthenticateReq :: AuthClientData a
2834 -> (AuthClientData a -> Req -> Req)
2935 -> AuthenticateReq a