We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9fbceee commit 0079766Copy full SHA for 0079766
src/ParseUser.js
@@ -694,10 +694,11 @@ export default class ParseUser extends ParseObject {
694
static _registerAuthenticationProvider(provider) {
695
authProviders[provider.getAuthType()] = provider;
696
// Synchronize the current user with the auth provider.
697
- var current = ParseUser.current();
698
- if (current) {
699
- current._synchronizeAuthData(provider.getAuthType());
700
- }
+ ParseUser.currentAsync().then((current) => {
+ if (current) {
+ current._synchronizeAuthData(provider.getAuthType());
+ }
701
+ });
702
}
703
704
static _logInWith(provider, options) {
0 commit comments