Skip to main content
Method offers a variety of libraries for your frontend application to make integrating with Opal easy and simple.

Frontend Libraries

Depending on your application, Method offers multiple frontend libraries to help you integrate with Opal:

JavaScript SDK

For vanilla JavaScript applications

React SDK

For React applications

React Native SDK

For React Native applications
All Opal SDKs provide:
  • Token Management: Automatic token validation and refresh
  • Event Handling: Comprehensive event system with typed callbacks
  • Error Management: Enhanced error handling with detailed error codes
  • Security: Built-in security features and validation

Installation

<script src="https://static.methodfi.com/opal/v1/stable/init.js"></script>

Testing in Development

When testing the Opal frontend in the dev environment, any modal step that prompts you to enter a six-digit verification code will accept any six-digit code. For example: 123456.

Notes

  • Event types follow the format <flow>.<object>.<action> or opal.session.<action> for defaults
  • See Events for structure and sample payloads