@leapfinance/auth-kit v1.0.0-SNAPSHOT-54 is an authentication library for React applications that provides token generation and login modal management. It features phone-based OTP login with optional Truecaller integration, event subscription, and logout capabilities. Stable release cadence is irregular as it is a snapshot version. Differentiators include minimal setup with a single component and imperative API for controlling login flow. Ships TypeScript types.
npm install vishwajeet-auth-libNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Setup WithLogin provider globally and trigger login modal with leapLogin() to get token via callback.
Ensure cookies are enabled and not blocked by browser settings.
Use leapLogin.loader() correctly; if not working, check if it expects a boolean or string parameter.
Monitor changelog; consider using event-based logout if available.
Run 'yarn add @leapfinance/auth-kit' and ensure package.json includes it.
Use 'import { leapLogin } from '@leapfinance/auth-kit'Ensure WithLogin component is rendered and leapLogin is imported correctly.