Passport strategy for authenticating with Punwave using the OAuth 2.0 API.
This module lets you authenticate using Punwave in your Node.js applications. By plugging into Passport, Punwave authentication can be easily and unobtrusively integrated into any application or framework that supports Connect-style middleware, including Express.
$ npm install passport-punwave
The Punwave authentication strategy authenticates users using a Punwave
account and OAuth 2.0 tokens. The app ID and secret obtained when creating an
application are supplied as options when creating the strategy. The strategy
also requires a
verify callback, which receives the access token and optional
refresh token, as well as
profile which contains the authenticated user's
Punwave profile. The
verify callback must call
cb providing a user to
passport.authenticate(), specifying the
'punwave' strategy, to
For example, as route middleware in an Express application: