Choosing a rendering option
| React components | Hosted components | Smart charging app | |
|---|---|---|---|
| Customisable theming | ✅ | ✅ | ✅ |
| Plug and play | ❌ - Use in existing React website | ❌ - You pick the components to use | ✅ - Axle provides the whole smart-charging flow |
| Build my own flow | ✅ - Use what you need in an existing app | ✅ - Embed what you need in an existing app | ❌ |
| Enhance an existing React app | ✅ - Drop in Axle React components | ❌ | ❌ |
Authentication
Regardless of how you choose to render, you’ll need to obtain an end-user scoped component token that can be used to authenticate API calls made from the frontend. This is a token scoped to a specific user for use with components only, and must be created using your org scoped token.To get your org scoped auth token, follow the authentication guide.
Never use your org scoped token in an untrusted environment, including all client side code.
external_user_id and allowed_origin. These are required
so Axle can reconcile your end users with the entries in our database, and to ensure that redirects or iFrame embeddings
can only happen on domains you control.
You can obtain a component token by calling the /auth/component-token/ endpoint:
Request
Response

