Skip to content

Simple authentication api written in node.js. Perfect to sell software

Notifications You must be signed in to change notification settings

NotNexx/Auth-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

⚠ In progress ⚠

🚧 API Routes 🚧

[GET] /

Response

  • ✅ Status: 200
message: "It works! ^^",

[POST] /login

Request

{
  username: string;
  password: string;
  apiKey: string;
}

Response

  • ✅ Status: 200
message: "Logged In",
  • ❌ Status: 401
message: "Invalid data",
  • ❌ Status: 404
message: "User not found",

[POST] /register

Request

{
  username: string;
  password: string;
  key: string;
  apiKey: string;
}

Response

  • ✅ Status: 201
message: "User created",
  • ❌ Status: 409
message: "Key already used",
  • ❌ Status: 404
message: "Key not found",
  • ❌ Status: 405
message: "User already exists",
  • ❌ Status: 401
message: "Invalid API Key",
  • ❌ Status: 400
message: "Missing fields",

About

Simple authentication api written in node.js. Perfect to sell software

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published