fix: github no expires in

This commit is contained in:
GitBluub
2022-03-05 14:58:56 +01:00
parent 051528a7d9
commit f5c2996b93
+1 -3
View File
@@ -61,9 +61,7 @@ getGithubTokens code = do
Left _ -> Nothing
Right obj -> do
access <- lookupObjString obj "access_token"
expiresIn <- lookupObjInt obj "expires_in"
let expiresAt = addUTCTime (fromInteger . fromIntegral $ expiresIn) currTime
Just $ ExternalToken (pack access) "" expiresAt Github
Just $ ExternalToken (pack access) "" currTime Github
-- DISCORD
getDiscordConfig :: IO OAuth2Conf