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
- 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
- JavaScript
- React
- React Native
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.
To test an incorrect code on the phone verification step, enter 999999. It is always rejected in the dev environment, so you can see how Opal handles a wrong code.
Notes
- Event types follow the format
<flow>.<object>.<action>oropal.session.<action>for defaults - See Events for structure and sample payloads