yesod-auth-oauth2-0.7.3.0: OAuth 2.0 authentication plugins
Safe HaskellSafe-Inferred
LanguageHaskell2010

Yesod.Auth.OAuth2.ErrorResponse

Description

Synopsis

Documentation

erUserMessage :: ErrorResponse -> Text Source #

Textual value suitable for display to a User

onErrorResponse :: MonadHandler m => (ErrorResponse -> m a) -> m () Source #

Check query parameters for an error, if found run the given action

The action is expected to use a short-circuit response function like permissionDenied, hence this returning ().