This commit is contained in:
patrick brisbin 2019-12-03 20:07:32 -05:00
parent 48277d9b8e
commit b998e03067
2 changed files with 5 additions and 2 deletions

View File

@ -83,6 +83,8 @@ instance YesodAuth App where
instance RenderMessage App FormMessage where
renderMessage _ _ = defaultFormMessage
-- brittany-disable-next-binding
getRootR :: Handler Html
getRootR = do
sess <- getSession
@ -144,7 +146,7 @@ mkFoundation = do
, loadPlugin oauth2Upcase "UPCASE"
]
return App{..}
return App {..}
where
loadPlugin f prefix = do
clientId <- getEnv $ prefix <> "_CLIENT_ID"

View File

@ -54,7 +54,8 @@ module Yesod.Auth.OAuth2.Prelude
-- * Temporary, until I finish re-structuring modules
, authOAuth2
, authOAuth2Widget
) where
)
where
import Control.Exception.Safe
import Data.Aeson