Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code Refactoring for passport.js file #1310

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mathangpeddi
Copy link

Refactoring Highlights:
Linking User Profiles: The linkOrCreateUser function eliminates repetitive logic for linking or creating users during OAuth sign-ins.
OAuth Configuration: The createOAuthStrategy function streamlines the setup of different OAuth providers by reducing boilerplate code.
Token Refresh: The token refresh logic is encapsulated in a promise for cleaner flow control.
Modularization: The code is modular and easy to expand, making it easier to maintain and scale with more providers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant