GithubHelp home page GithubHelp logo

souvik666 / ghost-auth Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 0.0 31 KB

Rapidly integrate authentication and authorization for web, mobile, and legacy applications so you can focus on your core business. grab your api key from here https://ghost-auth.netlify.app/

Home Page: https://ghost-auth-service.herokuapp.com/

JavaScript 100.00%
api authentication authorization express sdk-nodejs

ghost-auth's Introduction

Welcome to ghost-auth ๐Ÿ‘‹

Version License: ISC

Rapidly integrate authentication and authorization for web, mobile, and legacy applications so you can focus on your core business.

Quick links

API Documentation

you can find the API documentation here LINK to use the api or the npm package you will need an API-KEY please get your API key from this website LINK

FLOW

graph LR
A[GO to the website] -- Grab your api key --> B(Click on authorized buttton and past the api-key)
B <--> D{test the api}

ghost-auth Documentation

Install

npm i ghost-auth

Import

import GhostAuth from "ghost-auth";

Instance

const API_KEY = "YOUR_API_KEY";
const ghost = new GhostAuth(API_KEY);

signUp

ghost
  .signUp({
    email: "[email protected]",
    password: "souvik@12345",
    name: "souvik",
  })
  .then((d) => {
    console.log(d);
  });

Login

ghost.Login({ email: "[email protected]", password: "souvik@12345" });

Logout

ghost.Logout().then((d) => {
  console.log(d);
});

IsAuth

ghost.isAuth().then((d) => {
  console.log(d);
});

Forgotpass

ghost.Forgotpass(email).then((d) => {
  console.log(d);
});

ResetPassword

ghost.ResetPassword(otp, password, token).then((d) => {
  console.log(d);
});

Get All users

ghost.GetAllUsers().then((d) => {
  console.log(d);
});

Delete A User

ghost.DeleteAUser("[email protected]").then((d) => {
  console.log(d);
});

Author

๐Ÿ‘ค souvik666

Show your support

Give a โญ๏ธ if this project helped you!


This README was generated with โค๏ธ by readme-md-generator

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.