Install
$ npm install passport-domain
Usage
Configure Strategy
The domain authentication strategy authenticates users using a third-party
authenticator and domain. The strategy
requires a verify
callback, which receives an access token,
and calls cb
providing a user.
passport;
Authenticate Requests
Use passport.authenticate()
, specifying the 'domain'
strategy, to
authenticate requests.
For example, as route middleware in an Express application:
app; app;