[PR #1560] [MERGED] chore(server): remove token when logged out #9142

Closed
opened 2026-02-05 13:59:15 +03:00 by OVERLORD · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/immich-app/immich/pull/1560
Author: @alextran1502
Created: 2/5/2023
Status: Merged
Merged: 2/6/2023
Merged by: @alextran1502

Base: mainHead: chore/call-logout-on-mobile


📝 Commits (10+)

  • f6726d4 chore(mobile): invoke logout() on mobile app
  • 84cafe5 feat: add mechanism to delete token from logging out endpoint
  • a95b5e3 fix: set state after login sequence success
  • 8759c9d fix: not removing token when logging out from OAuth
  • 2e1716b Merge branch 'chore/call-logout-on-mobile' of github.com:immich-app/immich into chore/call-logout-on-mobile
  • 98265f0 fix: prettier
  • ec76ed5 refactor: using accessTokenId to delete
  • bb4efd8 chore: pr comments
  • 2870fed fix: test
  • e7f546e fix: test threshold

📊 Changes

9 files changed (+37 additions, -21 deletions)

View changed files

📝 mobile/lib/modules/login/providers/authentication.provider.dart (+3 -1)
📝 server/apps/immich/src/controllers/auth.controller.ts (+7 -2)
📝 server/libs/domain/src/auth/auth.service.spec.ts (+7 -3)
📝 server/libs/domain/src/auth/auth.service.ts (+5 -1)
📝 server/libs/domain/src/auth/dto/auth-user.dto.ts (+1 -0)
📝 server/libs/domain/src/user-token/user-token.core.ts (+9 -11)
📝 server/libs/domain/test/fixtures.ts (+2 -0)
📝 server/libs/infra/src/db/repository/user-token.repository.ts (+2 -2)
📝 server/package.json (+1 -1)

📄 Description

No description provided


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/immich-app/immich/pull/1560 **Author:** [@alextran1502](https://github.com/alextran1502) **Created:** 2/5/2023 **Status:** ✅ Merged **Merged:** 2/6/2023 **Merged by:** [@alextran1502](https://github.com/alextran1502) **Base:** `main` ← **Head:** `chore/call-logout-on-mobile` --- ### 📝 Commits (10+) - [`f6726d4`](https://github.com/immich-app/immich/commit/f6726d45714ff324596dbc346bc5df71aea95a22) chore(mobile): invoke logout() on mobile app - [`84cafe5`](https://github.com/immich-app/immich/commit/84cafe5bcbd79914c1a9d5a2571c2528295888f8) feat: add mechanism to delete token from logging out endpoint - [`a95b5e3`](https://github.com/immich-app/immich/commit/a95b5e3e2214f63ce91fbbcf0a204068d679c7dc) fix: set state after login sequence success - [`8759c9d`](https://github.com/immich-app/immich/commit/8759c9da9b329b7883f9cd3cdaf625188e6ef3a5) fix: not removing token when logging out from OAuth - [`2e1716b`](https://github.com/immich-app/immich/commit/2e1716b1727282f751b2ed5a5be6ea1c5dd48288) Merge branch 'chore/call-logout-on-mobile' of github.com:immich-app/immich into chore/call-logout-on-mobile - [`98265f0`](https://github.com/immich-app/immich/commit/98265f0538f6ed4e2af02a9bf7a1be9efbd023dc) fix: prettier - [`ec76ed5`](https://github.com/immich-app/immich/commit/ec76ed586eb357c1f5e188633f4799d262956bb8) refactor: using accessTokenId to delete - [`bb4efd8`](https://github.com/immich-app/immich/commit/bb4efd8f3baf0ae6bf84af1a4b0aac04e53ac4a9) chore: pr comments - [`2870fed`](https://github.com/immich-app/immich/commit/2870fed74c29af19b950e85cc2f5805bcc085b83) fix: test - [`e7f546e`](https://github.com/immich-app/immich/commit/e7f546ea32b6fbd76eb4779ab7258752e75865ba) fix: test threshold ### 📊 Changes **9 files changed** (+37 additions, -21 deletions) <details> <summary>View changed files</summary> 📝 `mobile/lib/modules/login/providers/authentication.provider.dart` (+3 -1) 📝 `server/apps/immich/src/controllers/auth.controller.ts` (+7 -2) 📝 `server/libs/domain/src/auth/auth.service.spec.ts` (+7 -3) 📝 `server/libs/domain/src/auth/auth.service.ts` (+5 -1) 📝 `server/libs/domain/src/auth/dto/auth-user.dto.ts` (+1 -0) 📝 `server/libs/domain/src/user-token/user-token.core.ts` (+9 -11) 📝 `server/libs/domain/test/fixtures.ts` (+2 -0) 📝 `server/libs/infra/src/db/repository/user-token.repository.ts` (+2 -2) 📝 `server/package.json` (+1 -1) </details> ### 📄 Description _No description provided_ --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
OVERLORD added the pull-request label 2026-02-05 13:59:16 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: immich-app/immich#9142