Skip to content

Lenzo20/Auth-mongoose

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Api de Login

  • Uma pequena api de login com validação e token, validação para conseguir usar

Use para iniciar o servidor

  • yarn start

Here we use the following languages and framework

  • Typescript
  • Nodejs
  • Express
  • Mongoose (Mongodb)
  • JasonWebToken

Router

  • router.get("/users", userControllers.find);

  • router.post("/users", userControllers.find);

  • router.patch("/users", userControllers.find);

  • router.delete("/users", userControllers.find);

  • router.post("/auth/users", userControllers.find);

  • router.get("/auth/users", userControllers.find);

router to authenticate token, here you need to pass token as headers good format "Bearer token"

ex: "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY0MjFlM2RhYTdlMjE0NGViNWE4NjdiMSIsIm5hbWUiOiJMZW56byIsImlhdCI6MTY3OTk0MjYzNSwiZXhwIjoxNjc5OTcxNDM1fQ.WH5DOiH5wCSrOBPWYtQYrZuffGu9LdSMHyv4"

  • Em breve novas funcionalidades, como acesso de admnistrador e testes para area de desenvolvimento

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published