Skip to content

Commit

Permalink
fix(partners): Fix get user from cache (#33)
Browse files Browse the repository at this point in the history
hotfix(partners): Fix get user from cache
  • Loading branch information
ahmed3mar authored Jul 24, 2024
1 parent f5139b8 commit 45eb944
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 45eb944

Please sign in to comment.