Skip to content

Commit

Permalink
Merge pull request #526 from nhost/linkedin-hotfix
Browse files Browse the repository at this point in the history
Linkedin provider hotfix
  • Loading branch information
Johan Eliasson authored May 24, 2021
2 parents 1601dc3 + 750cc66 commit a42e1ab
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 a42e1ab

Please sign in to comment.