yesod-auth-oauth2-0.6.3.4: OAuth 2.0 authentication plugins
Safe HaskellNone
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 ().