diff --git a/yesod-auth/ChangeLog.md b/yesod-auth/ChangeLog.md index 64a70937..a22f1e32 100644 --- a/yesod-auth/ChangeLog.md +++ b/yesod-auth/ChangeLog.md @@ -1,3 +1,7 @@ +## 1.6.3 + +* Generalize GoogleEmail2.getPerson [#1501](https://github.com/yesodweb/yesod/pull/1501) + ## 1.6.2 * Remove MINIMAL praggma for authHttpManager [#1489](https://github.com/yesodweb/yesod/issues/1489) diff --git a/yesod-auth/Yesod/Auth/GoogleEmail2.hs b/yesod-auth/Yesod/Auth/GoogleEmail2.hs index 789006e2..11fb8789 100644 --- a/yesod-auth/Yesod/Auth/GoogleEmail2.hs +++ b/yesod-auth/Yesod/Auth/GoogleEmail2.hs @@ -270,7 +270,7 @@ makeHttpRequest req = -- Will throw 'HttpException' in case of network problems or error response code. -- -- @since 1.4.3 -getPerson :: Manager -> Token -> AuthHandler site (Maybe Person) +getPerson :: MonadHandler m => Manager -> Token -> m (Maybe Person) getPerson manager token = liftSubHandler $ parseMaybe parseJSON <$> (do req <- personValueRequest token res <- http req manager diff --git a/yesod-auth/yesod-auth.cabal b/yesod-auth/yesod-auth.cabal index 7d96fa2b..23b90ab6 100644 --- a/yesod-auth/yesod-auth.cabal +++ b/yesod-auth/yesod-auth.cabal @@ -1,5 +1,5 @@ name: yesod-auth -version: 1.6.2 +version: 1.6.3 license: MIT license-file: LICENSE author: Michael Snoyman, Patrick Brisbin