-
Notifications
You must be signed in to change notification settings - Fork 5.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Initialize options for accounts from settings.json #13194
base: release-3.0
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for v3-migration-docs canceled.
|
✅ Deploy Preview for v3-meteor-api-docs canceled.
|
@@ -274,15 +282,15 @@ export class AccountsCommon { | |||
} | |||
|
|||
// Validate config options keys | |||
Object.keys(options).forEach(key => { | |||
for (const key of Object.keys(options)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why use for of
instead of forEach
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Better performance according to: https://romgrk.com/posts/optimizing-javascript
// TODO[FIBERS]: I need TLA | ||
Accounts.init().then() | ||
Accounts.init().then(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you check if TLA works here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will, but that is out of scope of this PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Run Meteor from checkout with await Accounts.init();
and didn't get any error. I can change the code here if you want.
….com/meteor/meteor into feature/accounts-server-options-init
Noticed this earlier that
Meteor.settings.packages.accounts-base
is not properly initialized on server. I think we used to have this and it might have gotten lost, so I've looked through things and made fixes to ensure those settings get picked up properly.