{"repo":"tobiasalbirosa/registrator","free":true,"listed":false,"github":"https://github.com/tobiasalbirosa/registrator","clone":"git clone https://github.com/tobiasalbirosa/registrator.git","description":"API registration","language":"JavaScript","stars":11,"topics":["nodejs","js","mongodb"],"license":"MIT","category":"databases-storage","readme_excerpt":"APIRESTFUL to register, log, validate and safe users and data Security layers: Any password, url, host, code, algorithm and tpye of cipher are in the enviroment variables. - The JWT config headers are compossed by enviroment variables to allow you to change the type of hash what you want securelly too. You can edit the files /auth and /verify to decide if you want to work with the entire token or not, I try to carry all things to maximun level of confidentiallity. - The data in database are cypher too. USE: Supossing you have installed Node JS and MongoDB your OS: - git clone https://github.com/tobiasalbirosa/registrator/ - cd registrator - npm i - node server.js ###### API Routes DOCUMENTATION: - POST /register body { email : \"EMAIL@EXAMPLE\", password : \"PASSWORD\", confirmpassword : \"PASSWORD\" } - POST /verify body { email : \"EMAIL@EXAMPLE\", password : \"PASSWORD\", code : \"EMAIL CODE\" } - POST /login body { email : \"EMAIL@EXAMPLE.COM\", password : \"PASSWORD\" } - POST /logout headers { Authorization : \"INCOMPLETE TOKEN\" } body { email : \"EMAIL@EXAMPLE.COM\", password : \"PASSWORD\", token : \"INCOMPLETE TOKEN\" }","default_branch":null,"files":null,"tree":[],"storefront":"/r/tobiasalbirosa","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/tobiasalbirosa/registrator/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}