Skip to content
Snippets Groups Projects
Unverified Commit 10476d30 authored by Rodrigo Nascimento's avatar Rodrigo Nascimento
Browse files

Fix OAuth global variable

Closes #5214
parent a9e38228
No related branches found
No related tags found
No related merge requests found
......@@ -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);
};
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment