Registry / security / wexer-auth

wexer-auth

JSON →
library0.1.46jsnpmunverified

Wexer Auth is a React Native authentication library (v0.1.46) providing a multiply function that returns the product of two numbers. It wraps react-native-app-auth for OAuth flows on iOS and Android. The library ships TypeScript types and is actively maintained, but its core functionality is minimal and poorly documented. It has peer dependencies on react, react-native, and react-native-app-auth.

npm install wexer-auth
INSTALL
IMPORT
SIG · WEXER-AUTH
W
wexer-auth
securityjavascriptv0.1.46
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

multiply
import { multiply } from 'wexer-auth'
const multiply = require('wexer-auth')
ESM named export. CommonJS require would import the whole module, not the function.
wexer-auth
import wexerAuth from 'wexer-auth'
import { wexerAuth } from 'wexer-auth'
Default export exists for the whole module, but named exports like multiply are also available.
AuthProvider
import { AuthProvider } from 'wexer-auth'
import AuthProvider from 'wexer-auth'
AuthProvider is a named export; default import returns the module object.

Demonstrates importing and using the multiply function as an asynchronous call, likely for token multiplication in OAuth flows.

import { multiply } from 'wexer-auth'; async function authExample() { try { const result = await multiply(3, 7); console.log('Product:', result); // 21 } catch (error) { console.error('Authentication failed:', error); } } authExample();
Debug
Known issues
gotchaDocumented usage only shows multiply function; actual authentication API is undocumented.
fix
Check source code or wait for documentation updates.
affects: >=0.1.0
gotchaPackage has peer dependency on react-native-app-auth ^6.2.0 which may cause version conflicts.
fix
Ensure react-native-app-auth is installed at compatible version.
affects: >=0.1.0
breakingVersion 0.x.x is pre-release; API likely to change without notice.
fix
Pin exact version and test after upgrades.
affects: <1.0.0
deprecatedmultiply function name suggests arithmetic, not authentication; misleading.
fix
Rename to a more descriptive function like 'authenticate'.
affects: >=0.1.0
gotchaOnly iOS and Android support; no web or Expo compatibility.
fix
Use react-native-app-auth directly for additional platforms.
affects: >=0.1.0
Errors
Common errors & fixes
Cannot find module 'react-native-app-auth' or its corresponding type declarations.
Missing peer dependency react-native-app-auth.
fix
Run 'npm install react-native-app-auth' or 'yarn add react-native-app-auth'.
TypeError: (0, wexer_auth.multiply) is not a function
Import statement incorrectly used default import or require instead of named import.
fix
Use 'import { multiply } from 'wexer-auth''.
undefined is not an object (evaluating 'RNAppAuth.authorize')
react-native-app-auth native module not linked or configured.
fix
Run 'cd ios && pod install' for iOS; for Android, ensure 'react-native link react-native-app-auth' is done or use autolinking.
Invariant Violation: Native module cannot be null.
React Native environment missing native modules (e.g., testing in a simulator without native builds).
fix
Build the app for a real device or emulator with 'npx react-native run-ios' or 'npx react-native run-android'.
Upgrade
Version history
0.1.46latest on npm
Audit
Dependencies
reactrequiredpeer dependency for React Native components
react-nativerequiredpeer dependency for React Native runtime
react-native-app-authrequiredunderlying OAuth library for authentication
Agent activity
36 hits · last 30 days
node
32
Amazon
1
OpenAI (training)
1
Resources
wexer-auth — npm install wexer-auth · libregistry