UNPKG

rauth-provider

Version:

A lightweight, plug-and-play Node.js library for phone number authentication using the Rauth.io reverse verification flow via WhatsApp or SMS.

53 lines (41 loc) 2.25 kB
# Changelog ## [1.3.4] - 2024-07-26 ### Changed - Updated README.md with clearer import/require syntax examples - Simplified usage examples to use direct named imports ## [1.3.3] - 2024-07-26 ### Changed - Converted all JavaScript files to proper ES modules format - Changed package.json type from "commonjs" to "module" - Fixed module import/export syntax in all core files ## [1.3.2] - 2024-07-26 ### Fixed - Added missing CommonJS (.cjs) versions of all core files to fix the "Cannot find module './core/RauthProvider.cjs'" error when using the package with CommonJS imports. ## v1.0.9 - 2023-05-02 ### Breaking Changes - None (backward compatible) ### New Features - Updated API response format from `/init` endpoint now includes: - `wa_link`: WhatsApp deep link for direct verification - `qr_image_link`: QR code image URL for WhatsApp verification - Sessions are now only stored when received from webhook (not from init response) - Added type definition for new API response format (`ApiSessionInitResponse`) ### Updates - Modified `initSession()` method to pass through the new response format - Updated README and example code to demonstrate how to use the new response format - Improved documentation to show how to forward the response to clients ### Developer Experience - Simplified example implementation - Added clearer comments about API response format - Updated TypeScript definitions for better IDE support ## v1.0.8 - 2023-04-15 - Maintenance and documentation updates ## [1.0.13] - 2024-07-09 ### Fixed - Corrected export pattern in index.js for full CommonJS compatibility. Removed 'module.exports.default' to ensure named exports work as expected in all Node.js versions. ## [1.1.0] - 2024-07-09 ### Changed - Removed all usage, config, and documentation of `webhook_url`. The library now gets the webhook URL by app_id in the backend. Passing webhook_url to init() is ignored. ## [1.2.0] - 2024-07-10 ### Removed - Removed all code, documentation, and type definitions related to `initSession` and session initialization. This functionality is now managed by a separate library. Only getSessionDetails, verifySession, and health check remain in this package.