Skip to content

StreamMeBots/passport-streamme-oauth2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

StreamMe Passport Strategy

Alpha

Currently oauth clients are in alpha. Please contact support@stream.me staff for an oauth client

Installation

$ npm install passport-streamme-oauth2

Usage

passport.use(
	new StreamMeStrategy({
		clientID: streammeClientId,
		clientSecret: streammeClientSecret,
		callbackURL: 'http://localhost/redirect'
	}, function(accessToken, refreshToken, profile, done) {

		// Save your user and accessToken

		done(null, profile);
	})
);

app.get('/', passport.authenticate('streamme', {
	scope: ['account']
}));

app.get('/redirect', passport.authenticate('streamme', {
	scope: ['account']
}), function(req, res) {
	res.send(req.user);
});

About

Oauth 2 strategy for passportjs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published