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

@leafwell/authentication

Package Overview
Dependencies
Maintainers
2
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@leafwell/authentication

A simple document for Leafwell Provider authentication lib for any of these enviroments: Node.js and compatible with React and React Native. For better understading about the methods and arguments, please make ensure you have typescript installed and conf

latest
npmnpm
Version
0.0.9
Version published
Maintainers
2
Created
Source

Leafwell Provider Authentication

A simple document for Leafwell Provider authentication lib for any of these enviroments: Node.js and compatible with React and React Native. For better understading about the methods and arguments, please make ensure you have typescript installed and configured on your project.

Installation

Using npm:

$ npm install @leafwell/authentication

Using yarn:

$ yarn add @leafwell/authentication

Example

import Authentication from "@leafwell/authentication";

(async function main() {
  Authentication.initialize("API_URL");

  /**
   * The response will be the full object returned by Google, Facebook and Apple
   * providers. You just need to pass them directly
   * */
  const data = await Authentication.signupUsingProviders(response);

  console.log(data);
})();

Usage

Authenticate

You need to start by authentication. Use the initialize method to setup and prepare your api client:

Authentication.initialize(API_URL);

Methods/properties available

Authentication.signupUsingProviders(response);

Authentication.signup(response);

Authentication.login(response);

Authentication.notifyResetPassword(response);

Authentication.setPassword(response);

FAQs

Package last updated on 30 Nov 2022

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