avers-api-0.0.1: src/Avers/API/Credentials.hs
module Avers.API.Credentials where
import Avers
-- | Credentials are used to authenticate the client. It can be a SessionId
-- (extracted from the 'session' cookie).
--
-- Later we may add support for token based authentication. Then we extend
-- this into a sumtype covering all the possible ways how credentials can be
-- passed along with the request.
data Credentials
= SessionIdCredential !SessionId
-- | AccessTokenCredential !AccessToken