Copyright | (c) Jiasen Wu 2020 |
---|---|
License | BSD-3-Clause |
Safe Haskell | None |
Language | Haskell2010 |
Synopsis
- data OAuth2Session = OAuth2Session {}
- oas_refresh_url :: Lens' OAuth2Session Text
- oas_refresh_token :: Lens' OAuth2Session Text
- oas_expires_in :: Lens' OAuth2Session NominalDiffTime
- oas_client_id :: Lens' OAuth2Session Text
- oas_access_token :: Lens' OAuth2Session Text
- oauth2Setup :: Text -> Text -> IO (ThreadId, MVar OAuth2Session)
- oauthRefresher :: MVar OAuth2Session -> IO ()
Documentation
data OAuth2Session Source #
OAuth2Session | |
|
oauth2Setup :: Text -> Text -> IO (ThreadId, MVar OAuth2Session) Source #
Setup a background thread to refresh OAuth2 token.
oauthRefresher :: MVar OAuth2Session -> IO () Source #