Closed dsmabulage closed 3 months ago
The purpose of this PR is to fix #57
google.strategy.ts
google-passport.ts
Implement LinkedIn Login:
linkedin-passport.ts
LINKEDIN_CLIENT_ID
LINKEDIN_CLIENT_SECRET
LINKEDIN_REDIRECT_URL
createProfile
Create Generic Function for Create Profile:
CreateProfile
Refactor Passport Strategies:
Update Environment Variables:
.env
Rename Passport Strategy Files:
Purpose
The purpose of this PR is to fix #57
Goals
google.strategy.ts
togoogle-passport.ts
).Approach
Implement LinkedIn Login:
linkedin-passport.ts
) using Passport.js.LINKEDIN_CLIENT_ID
,LINKEDIN_CLIENT_SECRET
,LINKEDIN_REDIRECT_URL
).createProfile
) for consistency across providers.Create Generic Function for Create Profile:
createProfile
function to extract and format user profile data from different authentication providers (e.g., LinkedIn, Google).createProfile
handles variations in profile structure and maps fields appropriately toCreateProfile
interface.Refactor Passport Strategies:
google-passport.ts
,linkedin-passport.ts
) to follow a unified structure.Update Environment Variables:
LINKEDIN_CLIENT_ID
,LINKEDIN_CLIENT_SECRET
,LINKEDIN_REDIRECT_URL
) in.env
file.Rename Passport Strategy Files:
Screenshots
Checklist
Related PRs
## Test environment ## Learning