mirror of
https://github.com/zoriya/Aeris.git
synced 2026-06-01 10:25:18 +00:00
fix: github no expires in
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user