Skip to content

Latest commit

 

History

History
28 lines (23 loc) · 1.51 KB

README.md

File metadata and controls

28 lines (23 loc) · 1.51 KB

Auth-mysql v2.0.0

By @pedroruizhidalg


Abstract

This is a very effective and complete application to manage users of a given application. You can even manage more than one application, each with respective users. A user, identified by email, can appear in several applications, but as different users.

Routes

Routes Method Request Successfull result
/apps/create POST { name } {apikey: apiKey, expiration_time, active:true, affectedRows : newApp.affectedRows}
/application/:appkey GET void if app is active: {apikey,name,create_time,end_time,active}
/application/getuuid/:apikey GET void {uuid}
/apps/application/delete DELETE {appkey,uuid} {"affectedRows: 1,message: "All users of this application was deleted too"}
/signup POST {applicationkey,username,email,password,enddate} {uuid,token}
/signin POST {appkey,uuid} {uuid,token}
/signwithemailpassword POST {appkey,email,password} {uuid,token}
/checktoken POST {token} {checktoken: true}

Headers

Headers management is very simple: Each one must contain:

Content-Type: application/json

Copyleft 2020 Pedro Ruiz-Hidalgo, Twitter: @pedroruizhidalg