{-# OPTIONS_GHC -fno-warn-orphans #-}

module Jose.Jwt.Instances
  (
  ) where

import ClassyPrelude.Yesod

import Jose.Jwt


instance PathPiece Jwt where
  toPathPiece (Jwt bytes) = decodeUtf8 bytes
  fromPathPiece = Just . Jwt . encodeUtf8

deriving instance Generic JwtError
deriving instance Typeable JwtError

instance Exception JwtError
