2.0.7 ā€¢ Published 2 years ago

ghost-auth v2.0.7

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

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

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: "souvik@gmail.com",
    password: "souvik@12345",
    name: "souvik",
  })
  .then((d) => {
    console.log(d);
  });

Login

ghost.Login({ email: "souvik@gmail.com", 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("someactualemail@email.com").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

2.0.7

2 years ago

2.0.6

2 years ago

2.0.5

2 years ago

2.0.4

2 years ago

2.0.3

2 years ago

2.0.2

2 years ago

2.0.1

2 years ago

2.0.0

2 years ago

1.2.37

2 years ago

1.2.36

2 years ago

1.2.35

2 years ago

1.2.33

2 years ago

1.2.31

2 years ago

1.2.30

2 years ago

1.2.29

2 years ago

1.2.28

2 years ago

1.2.27

2 years ago

1.2.26

2 years ago

1.2.25

2 years ago

1.2.24

2 years ago

1.2.23

2 years ago

1.2.22

2 years ago

1.2.20

2 years ago

1.2.19

2 years ago

1.2.17

2 years ago

1.2.16

2 years ago

1.2.15

2 years ago

1.2.14

2 years ago

1.2.13

2 years ago

1.2.12

2 years ago

1.2.11

2 years ago

1.2.10

2 years ago

1.2.9

2 years ago

1.2.8

2 years ago

1.2.7

2 years ago

1.2.6

2 years ago

1.2.5

2 years ago

1.2.4

2 years ago

1.2.3

2 years ago

1.2.2

2 years ago