Update clientId -> clientID

This commit is contained in:
Rory Powell 2021-07-09 16:21:42 +01:00
parent 09b148e2c8
commit 97a62594ed
1 changed files with 3 additions and 3 deletions

View File

@ -84,9 +84,9 @@ function validEmail(value) {
*/ */
exports.strategyFactory = async function (config, callbackUrl) { exports.strategyFactory = async function (config, callbackUrl) {
try { try {
const { clientId, clientSecret, configUrl } = config const { clientID, clientSecret, configUrl } = config
if (!clientId || !clientSecret || !callbackUrl || !configUrl) { if (!clientID || !clientSecret || !callbackUrl || !configUrl) {
throw new Error( throw new Error(
"Configuration invalid. Must contain clientID, clientSecret, callbackUrl and configUrl" "Configuration invalid. Must contain clientID, clientSecret, callbackUrl and configUrl"
) )
@ -108,7 +108,7 @@ exports.strategyFactory = async function (config, callbackUrl) {
authorizationURL: body.authorization_endpoint, authorizationURL: body.authorization_endpoint,
tokenURL: body.token_endpoint, tokenURL: body.token_endpoint,
userInfoURL: body.userinfo_endpoint, userInfoURL: body.userinfo_endpoint,
clientID: clientId, clientID: clientID,
clientSecret: clientSecret, clientSecret: clientSecret,
callbackURL: callbackUrl, callbackURL: callbackUrl,
}, },