Vue
Integrating Eartho into Your Vue App
This section describes how to integrate Eartho into a Vue app.
1. Install the SDK
You can install the SDK using npm or yarn.
Using npm:
Using yarn:
2. Retrieve Eartho Client ID and Access ID
Go to Eartho Creator and copy your Eartho client ID and access ID from the "Developers Integration" section.
3. Initialize and Configure the SDK
Integrate Eartho into your Vue app by configuring the SDK and handling authentication.
Example Code:
Adding Login to Your Application
Use the connectWithPopup
function from useEarthoOne
in your component to handle login.
Calling an API
Use the getIdToken
function from useEarthoOne
to call an API with the user's ID token.
Additional Resources
For more detailed examples and usage, visit the Eartho Vue Example Repository.
Last updated