Skip to content

Commit

Permalink
Export event listeners
Browse files Browse the repository at this point in the history
Add the listen and stopListening methods. Organise the exports in alphabetical order.
  • Loading branch information
eatyourgreens committed May 29, 2020
1 parent 4c8b0f1 commit 5681ae3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
10 changes: 6 additions & 4 deletions lib/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -360,13 +360,15 @@ const authClient = new Model({
});

module.exports = {
register: authClient.register.bind(authClient),
changePassword: authClient.changePassword.bind(authClient),
checkCurrent: authClient.checkCurrent.bind(authClient),
checkBearerToken: authClient.checkBearerToken.bind(authClient),
signIn: authClient.signIn.bind(authClient),
changePassword: authClient.changePassword.bind(authClient),
requestPasswordReset: authClient.requestPasswordReset.bind(authClient),
disableAccount: authClient.disableAccount.bind(authClient),
listen: authClient.listen.bind(authClient),
register: authClient.register.bind(authClient),
requestPasswordReset: authClient.requestPasswordReset.bind(authClient),
signIn: authClient.signIn.bind(authClient),
stopListening: authClient.stopListening.bind(authClient),
signOut: authClient.signOut.bind(authClient),
unsubscribeEmail: authClient.unsubscribeEmail.bind(authClient)
};
2 changes: 2 additions & 0 deletions lib/oauth.js
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,8 @@ module.exports = {
checkCurrent: authClient.checkCurrent.bind(authClient),
checkBearerToken: authClient.checkBearerToken.bind(authClient),
init: authClient.init.bind(authClient),
listen: authClient.listen.bind(authClient),
stopListening: authClient.stopListening.bind(authClient),
signIn: authClient.signIn.bind(authClient),
signOut: authClient.signOut.bind(authClient)
}

0 comments on commit 5681ae3

Please sign in to comment.