chore: added await to _additionalFindUserOnExternalLogin

This commit is contained in:
Gabriel Grubba
2022-12-08 15:54:09 -03:00
parent c5432bd124
commit 3d047f8b4d

View File

@@ -1335,7 +1335,7 @@ export class AccountsServer extends AccountsCommon {
// Check to see if the developer has a custom way to find the user outside
// of the general selectors above.
if (!user && this._additionalFindUserOnExternalLogin) {
user = this._additionalFindUserOnExternalLogin({serviceName, serviceData, options})
user = await this._additionalFindUserOnExternalLogin({serviceName, serviceData, options})
}
// Before continuing, run user hook to see if we should continue