From 5681ae3c86cfe53e9bd81169e2498106516e1a63 Mon Sep 17 00:00:00 2001 From: Jim O'Donnell Date: Fri, 29 May 2020 13:07:58 +0100 Subject: [PATCH] Export event listeners Add the listen and stopListening methods. Organise the exports in alphabetical order. --- lib/auth.js | 10 ++++++---- lib/oauth.js | 2 ++ 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/lib/auth.js b/lib/auth.js index d94ec12..6c69df1 100644 --- a/lib/auth.js +++ b/lib/auth.js @@ -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) }; diff --git a/lib/oauth.js b/lib/oauth.js index 7adafdc..2ef7f3f 100644 --- a/lib/oauth.js +++ b/lib/oauth.js @@ -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) }