AccessToken.php 596 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. /**
  3. * This file is part of the apiadmin/tiktok.
  4. */
  5. namespace App\Libs\TikTok\MiniProgram\Auth;
  6. use App\Libs\TikTok\MiniProgram\Kernel\AccessToken as BaseAccessToken;
  7. /**
  8. * Class AccessToken.
  9. *
  10. * @author zhaoxiang <zhaoxiang051405@gmail.com>
  11. */
  12. class AccessToken extends BaseAccessToken {
  13. /**
  14. * @return array
  15. */
  16. protected function getCredentials(): array {
  17. return [
  18. 'appid' => $this->app['config']['app_id'],
  19. 'secret' => $this->app['config']['secret'],
  20. 'grant_type' => 'client_credential',
  21. ];
  22. }
  23. }