| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Tesla.Auth
Description
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.
data AuthResponse Source #
An Authentication response.
Constructors
| AuthResponse | |
Fields
| |
Instances
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 # | |