Skip to content

Commit 38c6889

Browse files
committed
fix:这里获取$extend['extend']['client'] 多写了一个['extend']
1 parent 09a0938 commit 38c6889

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/JwtToken.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ public static function generateToken(array $extend): array
152152
$token['refresh_token'] = self::makeToken($payload['refreshPayload'], $refreshSecretKey, $config['algorithms']);
153153
}
154154
if ($config['is_single_device']) {
155-
$client = $extend['extend']['client'] ?? self::TOKEN_CLIENT_WEB;
155+
$client = $extend['client'] ?? self::TOKEN_CLIENT_WEB;
156156
RedisHandler::generateToken($config['cache_token_pre'], (string) $client, (string) $extend['id'], $config['access_exp'], $token['access_token']);
157157
}
158158
return $token;

0 commit comments

Comments
 (0)