Twitch.tv authentication strategy for Passport.
This module lets you authenticate using Twitch.tv in your Node.js applications. By plugging into Passport, Twitch.tv authentication can be easily and unobtrusively integrated into any application or framework that supports Connect-style middleware, including Express.
$ npm install passport-twitchtv
The Twitch.tv authentication strategy authenticates users using a Twitch.tv
account and OAuth tokens. The strategy requires a
verify callback, which
accepts these credentials and calls
done providing a user, as well as
options specifying a consumer key, consumer secret, and callback URL.
scope is required, all scopes are available here
passport.authenticate(), specifying the
'twitchtv' strategy, to
For example, as route middleware in an Express application:
For a complete, working example, refer to the login example.
$ npm install --dev $ make test
Copyright (c) 2014 John Kernke