Skip to content

adamgen/restful-users

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Creating a general use authentication package

This project aims to provide a higher level of implementation on top of express and passport. Making the bootstrap of an app with a user system to take as little configuration as possible.

Install and setup

Install the package npm i restful-users and add as an express middleware

app.use(usersSessionsRouter);
app.use(suggestedMiddleware());

Add a .env file at the root of you project and add the following:

  • FACEBOOK_APP_ID
  • FACEBOOK_APP_SECRET

That's it. now you can access the endpoints

Truly RESTful authentication endpoints

resource method business action
/user POST register
/user PUT approve email
/user PUT update
/user GET see profile
/user DELETE delete account
/session POST forgot password
/session GET login
/session DELETE logout

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published