Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

passport-photo-middleware

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

passport-photo-middleware

Middleware to attach avatars to users in connect.

latest
Source
npmnpm
Version
0.0.1-beta1
Version published
Maintainers
1
Created
Source

Passport Photo Middleware

Installation

npm install passport-photo-middleware

Usage


//1) create express server or connect server called app

//2) include authentication middleware to set user as req.user

//3) set up the passport-photo library

var photo = require("passport-photo");
photo.use(require("passport-photo-gravatar")());

//4) include the middleware

app.use(require('passport-photo-middleware')(photo));

//5) rest of application

FAQs

Package last updated on 17 Apr 2012

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts