diff --git a/packages/rocketchat-custom-oauth/custom_oauth_client.js b/packages/rocketchat-custom-oauth/custom_oauth_client.js index 418bfff473f..b3c88e9955d 100644 --- a/packages/rocketchat-custom-oauth/custom_oauth_client.js +++ b/packages/rocketchat-custom-oauth/custom_oauth_client.js @@ -46,7 +46,6 @@ export class CustomOAuth { } configureLogin() { - self = this; const loginWithService = 'loginWith' + s.capitalize(this.name); Meteor[loginWithService] = (options, callback) => { @@ -57,7 +56,7 @@ export class CustomOAuth { } const credentialRequestCompleteCallback = Accounts.oauth.credentialRequestCompleteHandler(callback); - self.requestCredential(options, credentialRequestCompleteCallback); + this.requestCredential(options, credentialRequestCompleteCallback); }; }