req-oauth2-0.1.0.0: Provides OAuth2 authentication for use with Req

Safe HaskellNone
LanguageHaskell2010

Network.HTTP.Req.OAuth2.Internal.Types

Synopsis

Documentation

newtype AccessToken Source #

OAuth2 access token

Constructors

AccessToken Text 

data App Source #

A web API application

newtype ClientId Source #

OAuth2 client ID

Constructors

ClientId Text 

data ClientPair Source #

OAuth2 client ID/client secret pair

type OAuth2 = StateT TokenPair IO Source #

OAuth2 application monad

newtype RefreshToken Source #

OAuth2 refresh token

Constructors

RefreshToken Text 

data TokenPair Source #

OAuth2 access/refresh token pair

type UpdateTokenPair = TokenPair -> IO () Source #

Action invoked in response to update to access/refresh token pair