mirror of
https://github.com/freckle/yesod-auth-oauth2.git
synced 2026-01-11 19:58:28 +01:00
Brittany
This commit is contained in:
parent
48277d9b8e
commit
b998e03067
@ -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"
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user