Skip to content

Commit

Permalink
hotfix(partners): Fix get user from cache
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmed3mar committed Jul 24, 2024
1 parent f5139b8 commit 87e4139
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Http/OauthMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public function handle($request, Closure $next, string $scope = null)

$exception_at = now()->diffInSeconds($this->user->getExpiredAt());

Cache::put($cacheKey, $this->user->toArray(), now()->addSeconds($exception_at));
Cache::put($cacheKey, ['data' => $this->user->toArray()], now()->addSeconds($exception_at));

return $this->nextRequest($next, $request);
}
Expand Down

0 comments on commit 87e4139

Please sign in to comment.