Skip to content
Snippets Groups Projects
Commit e7663cc9 authored by Rodrigo Nascimento's avatar Rodrigo Nascimento Committed by Gabriel Engel
Browse files

Fix OAuth global variable

Closes #5214
parent 7f39360e
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