Skip to content

Commit

Permalink
缓存 key 增加 refresh token 避免冲突
Browse files Browse the repository at this point in the history
  • Loading branch information
overtrue committed Mar 31, 2022
1 parent 6536231 commit 34d5eb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/OpenPlatform/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ public function createClient(): AccessTokenAwareClient
*/
public function getAuthorizerAccessToken(string $appId, string $refreshToken): string
{
$cacheKey = "open-platform.authorizer_access_token.{$appId}";
$cacheKey = "open-platform.authorizer_access_token.{$appId}.{$refreshToken}";

/** @phpstan-ignore-next-line */
$authorizerAccessToken = (string) $this->getCache()->get($cacheKey);
Expand Down

1 comment on commit 34d5eb2

@vercel
Copy link

@vercel vercel bot commented on 34d5eb2 Mar 31, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.