Skip to content

Commit

Permalink
correct provider env var for
Browse files Browse the repository at this point in the history
  • Loading branch information
elitan committed May 24, 2021
1 parent 1601dc3 commit 750cc66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/routes/auth/providers/linkedin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default (router: Router): void => {
initProvider(router, 'linkedin', Strategy, {
scope: ['r_emailaddress', 'r_liteprofile']
}, (req, res, next) => {
if(!PROVIDERS.apple) {
if(!PROVIDERS.linkedin) {
return res.boom.badImplementation(`Please set the LINKEDIN_ENABLE env variable to true to use the auth/providers/linkedin routes.`)
} else if (!options?.clientID || !options?.clientSecret) {
return res.boom.badImplementation(`Missing environment variables for LinkedIn OAuth.`)
Expand Down

0 comments on commit 750cc66

Please sign in to comment.