wax-auth-component
v1.3.8
Published
A reusable, styled authentication component designed for seamless integration across Wax applications.
Readme
wax-auth-component
A reusable, styled authentication component designed for seamless integration across Wax applications.
Features
- Plug-and-play authentication UI
- Fully customizable with optional header, footer, and logo
- Supports randomized image or text content
- Lightweight and compatible with Vite-based setups
Installation
Install via npm:
npm install @wally-ax/wax-auth-component
## Usage
```jsx
import { WaxAuth } from '@wally-ax/wax-auth-component';
<WaxAuth
source="source_name" // Required
className="class_name" // Optional
baseUrl={`${base_url}`} // Required
onSuccess={(data) => console.log(data)} // Required
onFailure={(error) => console.error(error)} // Required
header={true} // Optional
footer={true} // Optional
logo={true} // Optional
RandomImageComponent={true} // Optional
gaMeasurementId='GA_Measurement_ID' // Optional
gaApiSecret='GA_Api_Secret' // Optional
refId='reference_id' // Optional
/>