for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the overtrue/wechat.
*
* (c) overtrue <[email protected]>
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace EasyWeChat\MiniProgram\Auth;
use EasyWeChat\Kernel\AccessToken as BaseAccessToken;
/**
* Class AccessToken.
* @author mingyoung <[email protected]>
class AccessToken extends BaseAccessToken
{
* @var string
protected $endpointToGetToken = 'https://api.weixin.qq.com/cgi-bin/token';
* {@inheritdoc}
protected function getCredentials(): array
return [
'grant_type' => 'client_credential',
'appid' => $this->app['config']['app_id'],
'secret' => $this->app['config']['secret'],
];
}