This is an automated email from the ASF dual-hosted git repository.

github-merge-queue[bot] pushed a commit to branch 
gh-readonly-queue/main/pr-9177-38ddf37a1d5f872605a19dd7bfddf576ed934252
in repository https://gitbox.apache.org/repos/asf/texera.git

commit 2e13ab99ec56c205379fa46c771a1ccfc2196aa1
Author: Xinyuan Lin <[email protected]>
AuthorDate: Tue Oct 27 21:22:04 2026 +0000

    refactor(frontend): drop dead auth and stub auth members (#9177)
    
    ### What changes were proposed in this PR?
    Removes dead members in user authentication services:
    1. `AuthService.REFRESH_TOKEN` (`auth.service.ts:59`): Unreferenced
    static endpoint constant with 0 callers across production and test code.
    2. `StubAuthService.validateUsername` (`stub-auth.service.ts:114-116`):
    Dead test double method (actual username validation is a static utility
    on `UserService`, not `AuthService`).
    
    **+0/-5 lines.** Pure deletion with no behaviour change.
    
    ### Any related issues, documentation, discussions?
    Closes #9176.
    
    ### How was this PR tested?
    - Prettier check passes: `npx prettier --check
    src/app/common/service/user/auth.service.ts
    src/app/common/service/user/stub-auth.service.ts`
    - Verified 0 callers repo-wide:
      `git grep -nw "REFRESH_TOKEN"`
    `git grep -nw "validateUsername"` (only active static calls on
    `UserService`)
    
    ### Was this PR authored or co-authored using generative AI tooling?
    Generated-by: Antigravity (Claude Opus 5.5)
---
 frontend/src/app/common/service/user/auth.service.ts      | 1 -
 frontend/src/app/common/service/user/stub-auth.service.ts | 4 ----
 2 files changed, 5 deletions(-)

diff --git a/frontend/src/app/common/service/user/auth.service.ts 
b/frontend/src/app/common/service/user/auth.service.ts
index 6eb3849c6f..a8b5e517ea 100644
--- a/frontend/src/app/common/service/user/auth.service.ts
+++ b/frontend/src/app/common/service/user/auth.service.ts
@@ -56,7 +56,6 @@ export interface RegistrationResult {
 })
 export class AuthService {
   public static readonly LOGIN_ENDPOINT = "auth/login";
-  public static readonly REFRESH_TOKEN = "auth/refresh";
   public static readonly REGISTER_ENDPOINT = "auth/register";
   public static readonly GOOGLE_LOGIN_ENDPOINT = "auth/google/login";
   public static readonly ORCID_LOGIN_ENDPOINT = "auth/orcid/login";
diff --git a/frontend/src/app/common/service/user/stub-auth.service.ts 
b/frontend/src/app/common/service/user/stub-auth.service.ts
index b1d8cc661e..53b06a51bd 100644
--- a/frontend/src/app/common/service/user/stub-auth.service.ts
+++ b/frontend/src/app/common/service/user/stub-auth.service.ts
@@ -110,8 +110,4 @@ export class StubAuthService implements 
PublicInterfaceOf<AuthService> {
   ): Observable<Readonly<RegistrationResult>> {
     return of(MOCK_TOKEN);
   }
-
-  validateUsername(username: string): { result: boolean; message: string } {
-    return { message: "", result: false };
-  }
 }

Reply via email to