Add defaults module

This commit is contained in:
Yarmo Mackenbach 2021-04-16 12:59:44 +02:00
parent f3e0744c60
commit a3c11d6c80
No known key found for this signature in database
GPG key ID: 37367F4AF4087AD1
2 changed files with 42 additions and 0 deletions

40
src/defaults.js Normal file
View file

@ -0,0 +1,40 @@
/*
Copyright 2021 Yarmo Mackenbach
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
const opts = {
proxy: {
hostname: null,
policy: E.ProxyPolicy.NEVER
},
claims: {
irc: {
nick: null
},
matrix: {
instance: null,
accessToken: null
},
xmpp: {
service: null,
username: null,
password: null
},
twitter: {
bearerToken: null
},
}
}
exports.opts = opts

View file

@ -18,10 +18,12 @@ const keys = require('./keys')
const signatures = require('./signatures')
const serviceproviders = require('./serviceproviders')
const enums = require('./enums')
const defaults = require('./defaults')
const utils = require('./utils')
exports.proofs = proofs
exports.keys = keys
exports.signatures = signatures
exports.enums = enums
exports.defaults = defaults
exports.utils = utils