This commit is contained in:
patrick brisbin 2024-07-08 10:19:33 -04:00 committed by Pat Brisbin
parent 07c6ea6875
commit 7b0d4f6243

View File

@ -39,9 +39,8 @@ newtype User = User Text
instance FromJSON User where
parseJSON =
withObject "User" $ \o ->
User
-- Required for data backwards-compatibility
<$> (("google-uid:" <>) <$> o .: "sub")
-- Required for data backwards-compatibility
User . ("google-uid:" <>) <$> o .: "sub"
pluginName :: Text
pluginName = "google"