Skip to content

Commit

Permalink
Merge 97bc6f9 into 9eeb2b1
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewglover committed Oct 14, 2016
2 parents 9eeb2b1 + 97bc6f9 commit 81180f0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/fb_auth/index.js
Expand Up @@ -8,6 +8,7 @@ const fbAuthenticate = (config) =>
({
path: config.authPath,
method: 'GET',
config: { auth: false },
handler(req, reply) {
Promise.resolve(Object.assign({ code: req.query.code }, config))
.then(getUserToken)
Expand Down
1 change: 1 addition & 0 deletions lib/fb_login/index.js
Expand Up @@ -15,6 +15,7 @@ const fbLogin = ({ loginPath, clientId, baseUrl, authPath, options }) => {
return {
method: 'GET',
path: loginPath,
config: { auth: false },
handler: (req, reply) => {
reply.redirect(redirectUri);
},
Expand Down
1 change: 1 addition & 0 deletions test/index.test.js
Expand Up @@ -3,6 +3,7 @@ import Hapi from 'hapi';
import { createServer, setConnection, registerPlugins } from '@matthewglover/hapi-wrapper';
import HapiOauth from '../';

// server :: [Hapi.Plugin] -> Promise Hapi.Server Error
const server = plugins =>
createServer()
.then(setConnection())
Expand Down

0 comments on commit 81180f0

Please sign in to comment.