Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Authentication related data structures.
Synopsis
- data AuthInfo = AuthInfo {
- _clientID :: String
- _clientSecret :: String
- _email :: String
- _password :: String
- _bearerToken :: String
- clientID :: Lens' AuthInfo String
- clientSecret :: Lens' AuthInfo String
- email :: Lens' AuthInfo String
- password :: Lens' AuthInfo String
- bearerToken :: Lens' AuthInfo String
- fromToken :: String -> AuthInfo
- data AuthResponse = AuthResponse {}
- access_token :: Lens' AuthResponse String
- expires_in :: Lens' AuthResponse Int
- refresh_token :: Lens' AuthResponse String
- class Monad m => HasTeslaAuth m where
Documentation
An Authentication request.
clientSecret :: Lens' AuthInfo String Source #
bearerToken :: Lens' AuthInfo String Source #
data AuthResponse Source #
An Authentication response.
Instances
access_token :: Lens' AuthResponse String Source #
expires_in :: Lens' AuthResponse Int Source #
refresh_token :: Lens' AuthResponse String Source #
class Monad m => HasTeslaAuth m where Source #
A Monad may have a HasTeslaAuth
instance to indicate it knows
how to authenticate against the Tesla service.
Instances
(Monad m, MonadIO m, MonadReader EnergyEnv m) => HasTeslaAuth m Source # | |
Defined in Tesla.Energy | |
(Monad m, MonadIO m, MonadReader CarEnv m) => HasTeslaAuth m Source # | |