Skip to content

Commit a11a93c

Browse files
committed
fix: set config to empty object by default
1 parent f9f69fa commit a11a93c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const { OAuth2Strategy } = require('passport-google-oauth');
1010
const { boolean } = require('boolean');
1111

1212
class Passport extends KoaPassport {
13-
constructor(Users, config) {
13+
constructor(Users, config = {}) {
1414
super();
1515

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

0 commit comments

Comments
 (0)