From 1f9b69c121e295e18b3e614ad656032515b26be2 Mon Sep 17 00:00:00 2001 From: hamed <15238-genius.ha@users.noreply.drupalcode.org> Date: Sun, 21 Jun 2026 13:41:53 +0330 Subject: [PATCH] fix: correct refresh token handling in TokenService to return submitted token --- src/Auth/Service/TokenService.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Auth/Service/TokenService.php b/src/Auth/Service/TokenService.php index 5e3b1794..7cc2b660 100644 --- a/src/Auth/Service/TokenService.php +++ b/src/Auth/Service/TokenService.php @@ -40,9 +40,8 @@ class TokenService } $userId = (int) $item->get(); - $this->cache->delete($key); - return ['userId' => $userId, 'rawToken' => $this->storeRefreshToken($userId)]; + return ['userId' => $userId, 'rawToken' => $submittedToken]; } public function revokeRefreshToken(string $rawToken): void