0.0.9 • Published 3 years ago

@leafwell/authentication v0.0.9

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

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);
0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago