ghost-auth
v2.0.7
Published
<h1 align="center">Welcome to ghost-auth π</h1> <p> <a href="https://www.npmjs.com/package/ghost-auth" target="_blank"> <img alt="Version" src="https://img.shields.io/npm/v/ghost-auth.svg"> </a> <a href="#" target="_blank"> <img alt="Licens
Downloads
5
Readme
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-authImport
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
- Github: @souvik666
Show your support
Give a βοΈ if this project helped you!
This README was generated with β€οΈ by readme-md-generator
