Axle provides a complete hosted smart-charging app that can be added to your existing application as its own page. With this solution, Axle manages the entire smart-charging flow end-to-end.

Embedding the app

You can either link directly out to https://smartcharging.axle.energy, or embed the page within a Native app using a WebView. Axle will manage onboarding users and controlling their charging. To connect to a users charger and car, Axle can integrate with your APIs, or Axle also works with Enode to gain programmatic access to assets.
To see what including Enode in your onboarding flow might look like, see Integrating with native Enode Link SDK

Authentication

If hosting the Smart charging application within a native application, you can pass in the component token as a HttpOnly cookie. This will attach it to all network requests to *.app.axle.energy without requiring a HTTP interceptor, or exposing the token to a JS execution environment. The Axle hosted app will then manage further authentication to Axle APIs.
This example is for iOS, but the approach is similar on Android. If you want integration advice, get in touch and we’ll happily provide technical guidance
let config = WKWebViewConfiguration()

let webView = WKWebView(frame: .zero, configuration: config)
let store = config.websiteDataStore.httpCookieStore

var props: [HTTPCookiePropertyKey: Any] = [
  .domain: ".smartcharging.axle.energy",
  .path: "/",
  .name: "axle-component-token",
  .value: <component token>,             // axle-issued component token
  .secure: "TRUE",
  .httponly: "TRUE"
  .sameSitePolicy = "Strict"
]

let cookie = HTTPCookie(properties: props)!
store.setCookie(cookie) { [weak webView] in
  webView?.load(URLRequest(url: URL(string: "https://smartcharging.axle.energy")!))
}