Integration Methods
When integrating Mojito into your existing systems, you have two primary options:
Option 1: Use Existing User JWT
If your application already uses JWT (JSON Web Tokens) for user authentication, you can leverage the same flow to integrate with Mojito. By providing the user’s JWT during API calls, you ensure a seamless authentication and authorization process without additional overhead.
Option 2: Use Mojito API Key with User ID
Alternatively, you can utilize Mojito’s API key system. Each API key is associated with a unique user ID, allowing you to:
- Authenticate API requests.
- Map user actions to specific loyalty profiles.
- Simplify integration for applications without existing JWT flows.
For both methods, detailed integration guides and code examples are available in our API Reference section.
Updated 4 months ago