Skip to content

Android library for Tesla Authentication based on Tesla JSON API (Unofficial)

License

Notifications You must be signed in to change notification settings

octopus-energy/TeslaAndroidAuth

Repository files navigation

TeslaAndroidAuth

Lightweight Android library for Tesla SSO Authentication based on Tesla JSON API (Unofficial)

Setup

repositories {
    mavenCentral()
}

dependencies {
    implementation("energy.octopus:tesla-android-auth:$teslaAndroidVersion")
}

Usage

Supports only Compose for now

Tesla

TeslAuth(
        onError = {
            // Handle error
        },
        onSuccess = {
            // Handle success
        },
        loadingIndicator = {
            // Your custom loading indicator composable
        }
    )

Ohme

OhmeAuth(
        clientId = yourOhmeClientId,
        redirectUri = yourOhmeRedirectUri,
        state = ohmeState,
        onError = {
            // Handle error
        },
        onSuccess = {
            // Handle success
        },
        loadingIndicator = {
            // Your custom loading indicator composable
        }
    )

About

Android library for Tesla Authentication based on Tesla JSON API (Unofficial)

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages