Safe Haskell | None |
---|---|
Language | Haskell2010 |
Network.HTTP.Req.OAuth2.Internal.Types
- newtype AccessToken = AccessToken Text
- data App = App {}
- newtype ClientId = ClientId Text
- data ClientPair = ClientPair ClientId ClientSecret
- newtype ClientSecret = ClientSecret Text
- type OAuth2 = StateT TokenPair IO
- data ParseError = ParseError String
- newtype RefreshToken = RefreshToken Text
- data TokenPair = TokenPair AccessToken RefreshToken
- type UpdateTokenPair = TokenPair -> IO ()
Documentation
A web API application
Constructors
App | |
Fields |
OAuth2 client ID
data ClientPair Source #
OAuth2 client ID/client secret pair
Constructors
ClientPair ClientId ClientSecret |
Instances
OAuth2 access/refresh token pair
Constructors
TokenPair AccessToken RefreshToken |
type UpdateTokenPair = TokenPair -> IO () Source #
Action invoked in response to update to access/refresh token pair