Skip to content

Code refactoring for auth/index.js#54

Open
Mehulantony wants to merge 14 commits intomainfrom
code-refactor
Open

Code refactoring for auth/index.js#54
Mehulantony wants to merge 14 commits intomainfrom
code-refactor

Conversation

@Mehulantony
Copy link
Copy Markdown
Collaborator

Performed code refactoring for the auth/index.js file and introduced the following changes for cleanup and maintainability:

  1. Extracted JWT payload parsing into one helper function parseAuthHeaderPayload(req)
  2. Fixed typo issues in _extractUser
  3. Used consistent quote style and spacing
  4. Extracted repeated Auth0 fetch logic into one helper function requestTokenFromAuth0

Comment thread auth/index.js
Comment thread auth/index.js
Comment thread auth/index.js
Comment thread auth/index.js
Comment thread auth/index.js
Comment thread auth/index.js Outdated
Comment thread routes/_gog_fragments_from_manuscript.js Fixed
Comment thread routes/_gog_glosses_from_manuscript.js Fixed
Comment thread routes/bulkCreate.js Fixed
Comment thread routes/bulkUpdate.js Fixed
Comment thread routes/client.js Fixed
Comment thread routes/patchUnset.js Fixed
Comment thread routes/patchUpdate.js Fixed
Comment thread routes/patchUpdate.js Fixed
Comment thread routes/putUpdate.js Fixed
Comment thread routes/release.js Fixed
Mehulantony and others added 2 commits April 24, 2026 21:14
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
Comment thread routes/patchUnset.js Fixed
Mehulantony and others added 8 commits April 24, 2026 21:32
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
Co-authored-by: Reshma Dudekula <96569997+allenbakki@users.noreply.github.com>
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.

3 participants