Lightweight Android library for Tesla SSO Authentication based on Tesla JSON API (Unofficial)
repositories {
mavenCentral()
}
dependencies {
implementation("energy.octopus:tesla-android-auth:$teslaAndroidVersion")
}
Supports only Compose for now
TeslAuth(
onError = {
// Handle error
},
onSuccess = {
// Handle success
},
loadingIndicator = {
// Your custom loading indicator composable
}
)
OhmeAuth(
clientId = yourOhmeClientId,
redirectUri = yourOhmeRedirectUri,
state = ohmeState,
onError = {
// Handle error
},
onSuccess = {
// Handle success
},
loadingIndicator = {
// Your custom loading indicator composable
}
)