Skip to content

Commit

Permalink
fix: set config to empty object by default
Browse files Browse the repository at this point in the history
  • Loading branch information
titanism committed May 31, 2022
1 parent f9f69fa commit a11a93c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const { OAuth2Strategy } = require('passport-google-oauth');
const { boolean } = require('boolean');

class Passport extends KoaPassport {
constructor(Users, config) {
constructor(Users, config = {}) {
super();

if (!_.isObject(Users)) throw new Error('Users object not defined');
Expand Down

0 comments on commit a11a93c

Please sign in to comment.