Rapidly integrate authentication and authorization for web, mobile, and legacy applications so you can focus on your core business.
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
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}
npm i ghost-auth
import GhostAuth from "ghost-auth";
const API_KEY = "YOUR_API_KEY";
const ghost = new GhostAuth(API_KEY);
ghost
.signUp({
email: "souvik@gmail.com",
password: "souvik@12345",
name: "souvik",
})
.then((d) => {
console.log(d);
});
ghost.Login({ email: "souvik@gmail.com", password: "souvik@12345" });
ghost.Logout().then((d) => {
console.log(d);
});
ghost.isAuth().then((d) => {
console.log(d);
});
ghost.Forgotpass(email).then((d) => {
console.log(d);
});
ghost.ResetPassword(otp, password, token).then((d) => {
console.log(d);
});
ghost.GetAllUsers().then((d) => {
console.log(d);
});
ghost.DeleteAUser("someactualemail@email.com").then((d) => {
console.log(d);
});
👤 souvik666
- Github: @souvik666
Give a ⭐️ if this project helped you!
This README was generated with ❤️ by readme-md-generator