1
0
Fork 0
mirror of synced 2024-06-14 08:24:48 +12:00

Update clientId -> clientID

This commit is contained in:
Rory Powell 2021-07-09 16:21:42 +01:00
parent 09b148e2c8
commit 97a62594ed

View file

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