mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 09:16:03 +03:00
[PR #3444] [MERGED] refactor: improvements to the auth implementation in admin dashboard #4385
Labels
No labels
CodeDay
a11y
browser limited
bug
bug fix
cli
core
critical
design
desktop
discussion
docker
documentation
duplicate
enterprise
feature
feature
fosshack
future
good first issue
hacktoberfest
help wanted
i18n
invalid
major
minor
need information
need testing
not applicable to hoppscotch
not reproducible
pull-request
question
refactor
resolved
sandbox
self-host
spam
stale
testmu
wip
wont fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hoppscotch#4385
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/hoppscotch/hoppscotch/pull/3444
Author: @joeljstephen
Created: 10/11/2023
Status: ✅ Merged
Merged: 10/16/2023
Merged by: @AndrewBastin
Base:
release/2023.8.3← Head:refactor/dashboard-auth📝 Commits (10+)
7ab393arefactor: abstract axios queries to a separate helper file66d96b2chore: delete unnecessary filef2e9275chore: remove unnecessary console logs848d9farefactor: updated urls for api and authquery helpers0bbd4earefactor: updated auth implementationa4f7919refactor: use default axios instance67b6838chore: improve code readability0aedb6drefactor: separate instances for rest and gql calls6294d9frefactor: removed async await from functions that do not need them85c0777refactor: removed probable login and probable user from the auth system📊 Changes
14 files changed (+204 additions, -403 deletions)
View changed files
📝
packages/hoppscotch-sh-admin/locales/en.json(+2 -0)📝
packages/hoppscotch-sh-admin/src/components.d.ts(+31 -30)📝
packages/hoppscotch-sh-admin/src/components/app/Header.vue(+2 -2)📝
packages/hoppscotch-sh-admin/src/components/app/Login.vue(+28 -48)📝
packages/hoppscotch-sh-admin/src/components/teams/Invite.vue(+1 -1)➖
packages/hoppscotch-sh-admin/src/composables/auth.ts(+0 -62)📝
packages/hoppscotch-sh-admin/src/helpers/Email.ts(+0 -0)📝
packages/hoppscotch-sh-admin/src/helpers/auth.ts(+74 -253)➕
packages/hoppscotch-sh-admin/src/helpers/axiosConfig.ts(+20 -0)➕
packages/hoppscotch-sh-admin/src/helpers/backend/rest/authQuery.ts(+32 -0)➖
packages/hoppscotch-sh-admin/src/helpers/error.ts(+0 -3)➕
packages/hoppscotch-sh-admin/src/helpers/errors.ts(+9 -0)📝
packages/hoppscotch-sh-admin/src/main.ts(+3 -2)📝
packages/hoppscotch-sh-admin/src/pages/enter.vue(+2 -2)📄 Description
Ticket
Closes HFE-279
Description
This PR focuses on improving the auth implementation in the Admin Dashboard by removing unnecessary functions and files that do not contribute to the auth flow and improving the auth relevant functions. It also isolates all the backend queries from the auth file to separate backend helpers in the repo in order to achieve better abstraction and reusability.
Objectives
auth.tsto separate dedicatedauthQuery.tshelperChecks
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.