Update clientId -> clientID
This commit is contained in:
parent
09b148e2c8
commit
97a62594ed
|
@ -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,
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue