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

aslilogin

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aslilogin

AsliLogin Web SDK

latest
npmnpm
Version
1.0.2
Version published
Maintainers
1
Created
Source

ASLI Login - Web SDK

Description

The AsliLogin Web SDK enables you to add FIDO2 certified multi-factor authentication to your web-based application all the while having full control over the user experience with no redirection to pages outside your application.

Check out the AsliLogin SDK for a simplified integration.


Install Library via NPM

npm i aslilogin --save

Register via NodeJs / Typescript :

import { registration } from "aslilogin/sdk";

const handleSignup = async (event) => {
  event.preventDefault();

  const email = "youremail@gmail.com";

  let registerInitial = new registration.AsliLoginRegistration({
    token: "token received by ASLIRI",
  });

  const registerProcess = await registerInitial.registerWithPasswordLess(email);

  // you can show up response from process
  console.log({ registerProcess });

  // your code for handle
  // example
  if (registerProcess.status === "success") {
    //
    console.log("verify status", registerProcess.verified);
  }
};

HTML:

<button onClick={(event) => handleSignUp(event)} type="button">Sign Up</button>

Console Result:

registerProcess{
    message: "message",
    status: "success" | "error",
    verified: boolean
}


Login via NodeJs / Typescript :

import { authenticate } from "aslilogin/sdk";

const handleSignin = async (event) => {
  event.preventDefault();
  const email = "youremail@gmail.com";

  let loginInitial = new authenticate.AsliLoginAuthentication({
    token: "token received by ASLIRI",
  });

  const loginProcess = await loginInitial.loginWithPasswordLess(email);

  // you can show up response from process
  console.log({ loginProcess });

  // your code for handle
  // example
  if (loginProcess.status === "success") {
    //
  }
};

HTML:

<button onClick={(event) => handleSignin(event)} type="button">Sign Up</button>

Console Result:

loginProcess{
    message: "message",
    status: "success" | "error",
    verified: boolean
}

Keywords

authentication

FAQs

Package last updated on 26 Jul 2023

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