krdlab / haskell-oidc-client

OpenID Connect 1.0 client (RP) library for Haskell

Home Page:https://hackage.haskell.org/package/oidc-client

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Redesign Exception

krdlab opened this issue · comments

data OidcFlowException =
      DiscoveryFailed Text
    | InternalHttpError HttpException
    | JwtError JwtError
    | ValidationFailed Text    -- TODO: details
    | InvalidJsonData Text
  deriving (Show, Typeable)

foo :: (MonadThrow m, MonadIO m, Throws OidcFlowException) => m ()
foo = ...