{-|Module: BattlePlace.WebApi.AuthDescription: Web API authentication types.License: MIT-}{-# LANGUAGE DeriveGeneric #-}module BattlePlace.WebApi.Auth ( ClientToken(..) ) whereimport qualified Data.Aeson as Jimport GHC.Generics(Generic)import BattlePlace.Utilimport BattlePlace.WebApi.Typesdata ClientToken = ClientToken { clientToken_projectId :: {-# UNPACK #-} !ProjectId , clientToken_client :: !Client } deriving Genericinstance J.FromJSON ClientToken where parseJSON = J.genericParseJSON jsonOptionsinstance J.ToJSON ClientToken where toJSON = J.genericToJSON jsonOptions toEncoding = J.genericToEncoding jsonOptions