File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -2,13 +2,25 @@ import { Meteor } from 'meteor/meteor';
22import { Picture } from './models' ;
33import { Accounts } from 'meteor/accounts-base' ;
44import { Users } from './collections/users' ;
5+ declare const ServiceConfiguration : any ;
56
67Meteor . startup ( ( ) => {
78 if ( Meteor . settings ) {
89 Object . assign ( Accounts . _options , Meteor . settings [ 'accounts-phone' ] ) ;
910 SMS . twilio = Meteor . settings [ 'twilio' ] ;
1011 }
1112
13+ // Configuring oAuth services
14+ const services = Meteor . settings . private . oAuth ;
15+
16+ if ( services ) {
17+ for ( let service in services ) {
18+ ServiceConfiguration . configurations . upsert ( { service : service } , {
19+ $set : services [ service ]
20+ } ) ;
21+ }
22+ }
23+
1224 if ( Users . collection . find ( ) . count ( ) > 0 ) {
1325 return ;
1426 }
You can’t perform that action at this time.
0 commit comments