New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

mobilepass

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mobilepass

JavaScript implementation of the MobilePASS token client

latest
Source
npmnpm
Version
0.0.1
Version published
Maintainers
1
Created
Source

mobilepass-js

This is a JavaScript implementation of the MobilePASS token client.

Usage

install

npm install mobilepass
pnpm add mobilepass
bun add mobilepass

code (ESModule)

import { generateOtp } from "mobilepass";

const actcode = "XUU75-RROTT-Y5IP6-U3BMV";
const counter = 1;

const otp = await generateOtp(actcode, counter);
console.log(`OTP: ${otp}`);

code (CommonJS)

const { generateOtp } = require("mobilepass");

const actcode = "XUU75-RROTT-Y5IP6-U3BMV";
const counter = 1;

(async () => {
  const otp = await generateOtp(actcode, counter);

  console.log(`OTP: ${otp}`);
})();

Compatibility

  • Node.js 15.0.0 and later
  • Any other JavaScript environment that supports WebCrypto API

FAQs

Package last updated on 16 Mar 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts