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

@appstitch/auth

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

@appstitch/auth

App Stitch User Management and Passwordless Authentication

latest
npmnpm
Version
1.0.4
Version published
Maintainers
1
Created
Source

Appstitch Auth

A straightforward library to handle user management. User credentials are protected using AES128 encryption

Install

npm install @appstitch/auth

Install Peer Dependancy AppStitch Core

npm install @appstitch/core

Usage

Initialize Appstitch in your root file

import appstitch from "@appstitch/core";

appstitch.initialize({ appStitchKey:your_stitch_key"});

Create a user

import auth from "@appstitch/auth";


const signUp = (email) => {

    const options = {
        email
    }
    auth.signUp(options).then(result => {

        if(result.success)
        {
            // Success
        }
    })
}

Sign In


import auth from "@appstitch/auth";


const signIn = (email) => {

    const options = {
        email
    }
    auth.signIn(options).then(result => {

        if(result.success)
        {
            // Success
        }
    })
}

Confirm User


import auth from "@appstitch/auth";

const confirmUser = (code) => {

    const options = {
        code
    }
    auth.confirmUser(options).then(result => {

        if(result.success)
        {
            // Success
        }
    })
}

Keywords

passwordless-auth

FAQs

Package last updated on 24 Apr 2021

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